From the course: jQuery Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using the jQuery event object

Using the jQuery event object - jQuery Tutorial

From the course: jQuery Essential Training

Start my 1-month free trial

Using the jQuery event object

- [Instructor] In this example we're going to take a look at the jQuery unified Event Object. Even though all the modern browsers now implement the W3C standard event API, there are still some subtle differences between how the browsers pass Event information to Event handlers. jQuery provides a normalized Event Object that ensures cross browser consistency when you're handling event information. Here on the jQuery website, let's go into the API Documentation and scroll down to the Events section, and click on the Event Object. jQuery makes sure that this list of properties, right here, is consistent across browsers. There's the target, and that's where the Event originated from, there's the related target, which in some cases is another element on the page, or maybe the page itself, that may have also been involved in the Event somehow, I'll get to that in a little bit. It is also the x and y-coordinates on the page where the mouse was when the Event occurred, although these may not…

Contents