September 2024
Beginner to intermediate
985 pages
35h 37m
English
As you recall from Chapter 6, there are several options for catching events. Event handlers are usually available for the corresponding event, and there’s also the possibility to register several event listeners for one event via the addEventListener() method. Older versions of Internet Explorer also use the attachEvent() method, which fulfills a similar task.
We also showed a corresponding browser-independent helper function in Chapter 6. The jQuery library offers a browser-independent solution as well.
jQuery provides several methods to respond to events or register event listeners. So, on the one hand, you can use the on() method, which is called on the jQuery object, as shown ...
Read now
Unlock full access