onMove (Event handler)

The browser window has been moved.

Availability:

JavaScript - 1.2
Netscape - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:-myObject.onmove = aHandler
HTML syntax:<BODY onMove="aHandler"> <FRAMESET onMove="aHandler"> <HTMLTag onMove="aHandler">
Argument list:aHandlerA reference to a function object to handle the event

Moving the browser window usually won't cause any problems. However, if you have some window content that you want to position relative to the screen, or if you want to locate the window at a specific location, perhaps locating it on a grid, this event may be useful.

The event is triggered when a window is moved on the screen to another location.

The handler is registered by defining it with an HTML tag attribute or by assigning a handler function to the property.

The event is also triggered when a window is moved under control of a script with the moveTo() or moveBy() methods.

See also:Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, Semantic event, Window events, Window.onmove

Supported by objects:

Window