August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.type
The type property of the Event object refers to the type of event that occurred. The value assigned to type is a string representing the name of the event. See Table 7.25 for the valid event types supported by each browser.
Listing 7.214 shows how the type property can be used to figure out what type of event is being set. This example checks for a few different events. When an event is detected, a message is displayed in the message box indicating to the user which type of event occurred. This example can be expanded to include many different events.
<html> <head> <title>Using the type property for ... |
Read now
Unlock full access