Event.MOVE

JavaScript 1.2+ Nav4+ Syntax

Event.MOVE

Description

The MOVE property of the Event object is used by windows and frames to indicate when movement by the window or frame occurs.

Example

Listing 7.234 shows the syntax for accessing the MOVE property. When you begin to move the browser window, the MOVE event will be captured, and the coordinates for the upper-left of the window will be displayed.

Listing 7.234 Accessing the MOVE Property
 <html> <head> <title>Using Event.MOVE</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture MOVE events window.captureEvents(Event.MOVE); // function that handles the specific event. The evnt parameter refers to // the event object. The function sets ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.