Skip to main content
  • 1453 Accesses

Abstract

The most important aspect to unobtrusive DOM scripting is the use of dynamically bound events. The ultimate goal of writing usable JavaScript code is to have a web page that will work for the users, no matter what browser they’re using or what platform they’re on. To accomplish this, you set a goal of the features that you want to use, and exclude any browsers that do not support them. For the unsupported browsers, you then give them a functional, albeit less interactive, version of the site. The benefits to writing JavaScript and HTML interactions in this manner include cleaner code, more accessible web pages, and better user interactions. All of this is accomplished by using DOM events to improve the interaction that occurs in web applications.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2006 John Resig

About this chapter

Cite this chapter

(2006). Events. In: Pro JavaScript™ Techniques. Apress. https://doi.org/10.1007/978-1-4302-0283-7_6

Download citation

Publish with us

Policies and ethics