spacer
Yehuda Shiran January 11, 2000
Locating An Event
Tips: January 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

The following table lists the location properties of the event (window.event) object in Internet Explorer 4.0 and up:

PropertyDescription
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.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business