event.height

JavaScript 1.2+ Nav4+ Syntax

							event.height

Description

The height property of the Event object controls the height of a window or frame during the RESIZE event.

Example

Listing 7.204 shows how the height property can be accessed when an event such as RESIZE occurs. The RESIZE event means that the corresponding window or frame has changed size, thereby changing the height property.

Listing 7.204 Accessing event.height Property
 <html> <head> <title>Example of the event.height property</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture RESIZE events window.captureEvents(Event.RESIZE); // function that changes the size of the window. function changeSize(){ window.resizeTo(300,400); ...

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.