O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

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

Chapter 3. DOM Manipulation and Event Handling

Every time you view a web page in your browser, a tree-like structure representing the page and all of its elements is created. This is the Document Object Model (DOM), and it provides an API that you can use to obtain, add, modify, or remove almost any part of the web page, and without which modern web design as we know it would not exist. The YUI makes accessing and working with the DOM much easier, and allows you to perform a variety of common DOM scripting tasks with ease.

An integral part of any web application is the ability to react to different events that occur upon the different elements found on your pages. Browsers have had their own event models for some time now, allowing you to easily ...

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