January 2018
Intermediate to advanced
678 pages
20h 16m
English
Remember the onclick attribute for the button control’s input element? That attribute is known as an event-handler attribute because its value is an event handler. As you know, an event handler is JavaScript code that tells the JavaScript engine what to do when a particular event takes place. When an event takes place, we say that the event fires. For the button control’s onclick attribute, the event is clicking the button.
Take a look at the table of event-handler attributes and their associated events in FIGURE 8.11. We’ll provide a brief overview of those event-handler attributes in this section and put them to use in web page examples later on.8
FIGURE 8.11 Some of the more popular event-handler attributes ...
Read now
Unlock full access