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 clientXA number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the the browser window. clientYA number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the the browser window. screenXA number specifying the horizontal coordinate of the mouse cursor at the time of event, with respect to the client's screen. screenYA number specifying the vertical coordinate of the mouse cursor at the time of event, with respect to the client's screen. offsetXA 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.offsetYA 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.xA 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.yA 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.



