Event.RESIZE

JavaScript 1.2+, JScript 3.0+ Nav4+, IE 4+ Syntax

Event.RESIZE

Description

The RESIZE property of the Event object is used by windows and frames to indicate the event of resizing the window or frame.

Example

Listing 7.236 shows how to determine when the window has been resized using the RESIZE event. When the RESIZE event is captured, the handle() function outputs the height and width properties of the window.

Listing 7.236 Using the RESIZE Property
 <html> <head> <title>Example of Event.RESIZE</title> </head> <body> <script language="JavaScript"> <!--Hide // sets up the window to capture RESIZE events window.captureEvents(Event.RESIZE); // function that handles the specific event. The evnt parameter refers to // the 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.