Availability: |
| |||||
Property/method value type: | Function object | |||||
JavaScript syntax: | - | myWindow.onresize | ||||
- | myWindow.onresize = aHandler | |||||
- | onresize | |||||
- | onresize = aHandler | |||||
HTML syntax: | <BODY onResize="aHandler"> <FRAMESET onResize="aHandler"> | |||||
Argument list: | aHandler | An event handler function object |
This is called when a window is enlarged or reduced in size.
The handler is registered by defining it with an HTML tag attribute. The handler can also be registered by assigning the function object to the onresize property of the window.
The event is also triggered when a window is resized under control of a script with the resizeTo() or moveBy() methods.
See also: | onResize, Window.resizeBy(), Window.resizeTo() |
Prev | Home | Next |
Window.onmove | Up | Window.onunload |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |