August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.handleEvent(event)
The handleEvent method of the Layer object determines what type of event occurred and passes the event to the object's appropriate event handler.
Listing 7.331 shows how to use the handleEvent method. The document is set up to capture any FOCUS events. When one occurs, it is sent to the handle() function, which passes it to the default handler for layer2 object. This calls the displayMsg() function for any FOCUS events that occur.
<html> <head> <title> Using the handleEvent property of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide // sets up the document to ... |
Read now
Unlock full access