JavaScript » eventhandler » onResize

Syntax:
onResize = myJavaScriptCode

Event handler for Window

The onResize even handler is use to execute specified code whenever a user or script resizes a window or frame. This allows you to query the size and position of window elements, dynamically reset SRC properties etc. It uses the following properties of the Event object:
 
type - indicates the type of event.
target - indicates the target object to which the event was sent.
width, height - indicates the width or height of the window or frame

See Also: