– JavaScript Events

Size : 428 MiB (448791253 Bytes)

Learn about the different types of JavaScript events available to use in your applications, including traditional events like mouse, form, and window events, plus events that allow you to manage the DOM and HTML5 events that deal with media. Author Ray Villalobos shows how to propagate and register events during the capturing and bubbling phases, cancel an event or default behavior, and respond to clicks, mouse-overs, right-clicks, following the mouse, and loading images. Plus, Ray demos an audio jukebox project and a drag-and-drop game that shows JavaScript desktop and touch events in action.
Topics include:

Understanding event registration and propagation

Analyzing event properties

Creating and removing DOM elements with events

Removing an event

Canceling and preventing default events

Playing media events

Handling media pauses

Dragging and dropping

Adding touch events