Skip to Content
jQuery: Visual QuickStart Guide
book

jQuery: Visual QuickStart Guide

by Steven Holzner
June 2009
Intermediate to advanced content levelIntermediate to advanced
240 pages
5h 19m
English
Peachpit Press
Content preview from jQuery: Visual QuickStart Guide

4. Working with Events

JavaScript is all about making your pages come alive—but you won’t get very far without events.

Events let you respond to user actions such as clicks, double-clicks, mouse movements, and keystrokes. That’s the kind of thing that JavaScript is good at, and it’s one of the mainstays of jQuery.

Why is event handling so important in jQuery? jQuery unifies event handling in multiple browsers, whereas cross-browser event handling in straight JavaScript is a nightmare.

Event Handling in JavaScript and jQuery

If you’ve ever tried to support, say, drag-and-drop operations in a cross-browser way in straight JavaScript, you know the difficulties. Internet Explorer and Firefox have very different ways of handling events, from top ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning jQuery

Beginning jQuery

Jack Franklin

Publisher Resources

ISBN: 9780321679673Purchase book