August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.captureEvents(event.type)
The captureEvents() method of the Layer object is used to handle all events of a specific type.
Listing 7.323 shows how the captureEvents() method is used. The captureEvents() method is used for layer2 to listen for the RESIZE event. When this occurs, the resize2() function is called, which displays a message to the user.
<html> <head> <title> Using the captureEvents of the Layer object</title> </head> <body> <script language="JavaScript"> <!-- Hide document.layer2.captureEvents(Event.RESIZE); // function resizes layer2 and upon the resize event alerts the // user that the layer ... |
Read now
Unlock full access