August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.routeEvent(event)
The routeEvent() method of the Layer object reroutes a captured event to another event handler. The method takes a single parameter representing the event to be routed.
Listing 7.351 shows an example of the routeEvent() method.
<html> <head> <title> Using the routeEvent method of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide // sets up the document to capture FOCUS events document.captureEvents(Event.FOCUS); // function that handles the specific event. The evnt parameter refers to // the event object. function handle(evnt){ alert("The layer got a FOCUS event ... |
Read now
Unlock full access