Head First Ajax Code: Chapter 3, JavaScript Events

Chapter 3 Opening Image

Sometimes you need your code to react to other things going on in your web application...

Head First Ajax

...and that's where events come into the picture. An event is something that happens on your page, in the browser, or even on a web server. But it's not enough to just know about events... sometimes you want to respond to them. By creating code, and registering it as an event handler, you can get the browser to run your handler every time a particular event occurs. Combine events and handlers, and you get interactive web applications.

Download Code

Yoga for Programmers Files (zip)

Yoga for Programmers (Semi- Completed Site) (zip)

View the Finished Site

Yoga for Programmers (opens a new window)