O'Reilly logo

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition by John Pollock

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 10
Event Handlers
Key Skills & Concepts
    Understanding Event Handler Locations and Uses
    Learning the Event Handlers
    Other Ways to Register Events
    The Event Object
    Creating Scripts Using Event Handlers
image
When creating scripts, you will often find that there are user “events” (such as a user moving a mouse over a certain element or clicking a particular element) to which you want your script to react. The way you do this is through the use of event handlers.
To learn how the event handlers work, you need to learn what they are and why they are useful to you. You will then learn where event handlers are placed in a document ...

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