Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the y-coordinate of the mouse pointer's position relative to the object firing the event.
Syntax
event.offsetY [ = iCoord ]Possible Values
iCoord | Integer that specifies or receives the y-coordinate, in pixels. |
The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Remarks
The property is read-only in Microsoft® Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.
The coordinates match the offsetLeft and offsetTop properties of the object. Use offsetParent to find the container object that defines this coordinate system.
This example uses the offsetY property to determine the mouse position relative to the container that fired the event, and displays the mouse coordinates in the status bar at the bottom of the window.
Hide Example
<SCRIPT>Standards Information
There is no public standard that applies to this property.
Applies To
|
event |
Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |