January 11, 2000 - Locating An Event
January 11, 2000 Locating An Event Tips: January 2000
Yehuda Shiran, Ph.D.
|
event
(window.event
) object in Internet Explorer 4.0 and up:
Property Description clientX
A number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the the browser window. clientY
A number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the the browser window. screenX
A number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the client's screen. screenY
A number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the client's screen. offsetX
A number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the container element. It matches the offsetLeft
property of the element. Use the element's offsetParent
property to find the container element that defines this coordinate system. This is a read-only property.offsetY
A number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the container element. It matches the offsetTop
property of the element. Use the element's offsetParent
property to find the container element that defines this coordinate system. This is a read-only property.x
A number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the element in the parent hierarchy that is positioned using the CSS positioning attribute. If no element has been positioned, the BODY
element is the default. If the mouse is outside the window when the event is called, this property returns -1. This is a read-only property.y
A number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the element in the parent hierarchy that is positioned using the CSS positioning attribute. If no element has been positioned, the BODY
element is the default. If the mouse is outside the window when the event is called, this property returns -1. This property has read-only permission
Learn more about the event object from Column 10, The Internet Explorer Event Model.