Layer.releaseEvents()

JavaScript 1.2+ Nav4+ Syntax

							layer.releaseEvents(event)

Description

The releaseEvents() method of the Layer object specifies that the layer object should no longer capture events of the specified type.

Example

Listing 7.348 is an example of how the releaseEvents() method is used. When the FOCUS event is captured, it is handled by the handle() method. Once this is done, executing the event is released using the releaseEvents() method.

Listing 7.348 Example of the releaseEvents() Method
 <html> <head> <title> Using the releaseEvents 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 ...

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.