O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

JavaScript Events

In this chapter’s introduction, I noted that diving into JavaScript was beyond the scope of the book. However, I do want to give you a tiny peek at JavaScript events so you’ll have a basic sense of what Java-Script can do for you.

You can write JavaScript to respond to specific, predefined events that either your visitor or the browser triggers. The list that follows is just a small sample of the event handlers available to you when you write scripts. HTML5 introduces numerous other ones, many of which revolve around events related to the audio and video elements. Some touchscreen devices have gotten in on the action too, with special touch-based event handlers.

Please note that “mouse” in this list means any “pointing device.” ...

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