DekGenius.com
Team LiB   Previous Section   Next Section
Window.onmove the handler invoked when a window is moved

Availability

Netscape 4; not supported on Netscape 4 Unix platforms

Synopsis

<body onmove="handler" ... >
<frameset onmove="handler" ... >
window.onmove

Description

The onmove property of the Window object specifies an event handler function that is invoked when the user moves a top-level window to a new position on the screen.

The initial value of this property is a function that contains the JavaScript statements specified by the onmove attribute of the HTML <body> or <frameset> tag that defined the window. When an event handler function is defined by an HTML attribute, it is executed in the scope of element rather than in the scope of the containing window.

The onmove handler function is passed an Event object as an argument. The properties of this object contain information about the new position of the window.

    Team LiB   Previous Section   Next Section