O'Reilly logo

Pro JavaScript™ Techniques by John Resig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PART 3Unobtrusive JavaScript

CHAPTER 5The Document Object Model

Of all the advances made in web development during the past decade, DOM (Document Object Model) scripting is one of the most important techniques that a developer can use to improve the quality of experience for his users.

Using DOM scripting to add unobtrusive JavaScript to a page (meaning that it doesn't interfere with unsupported browsers nor people who have JavaScript disabled) you will be able to provide all sorts of modern enhancements that your users will be able to enjoy without harming those who are unable to utilize them. A side effect of doing this is that all of your code ends up being nicely separated and easier to manage—all thanks to DOM scripting.

Thankfully, all ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required