August 1999
Intermediate to advanced
1488 pages
72h 53m
English
event.width
The width property of the Event object refers to the width of a window or frame. It is set during the RESIZE event to the new width of window or frame being resized.
Listing 7.216 shows an example using the width property. The RESIZE event is captured and passed to the handle() function. This function informs the user that a RESIZE event has occurred and outputs the new width of the window.
<html> <head> <title>Example of the event.width property</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture RESIZE events window.captureEvents(Event.RESIZE); // function that changes the ... |
Read now
Unlock full access