Window.onresize (Property)

A reference to a resized window event handler for this window object.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:Function object
JavaScript syntax:-myWindow.onresize
-myWindow.onresize = aHandler
-onresize = aHandler
HTML syntax:<BODY onResize="aHandler"> <FRAMESET onResize="aHandler">
Argument list:aHandlerAn 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()

Property attributes: