Layer.routeEvent()

JavaScript 1.2+ Nav4+ Syntax

							layer.routeEvent(event)

Description

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.

Example

Listing 7.351 shows an example of the routeEvent() method.

Listing 7.351 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 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.