Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Position

Status
Not open for further replies.

flanakin

Programmer
Mar 21, 2000
158
US
How can I grab the mouse's x and y coordinates? Also, which one's which in JavaScript. Is the x horizontal, or vertical? Thanks.

Cid
ciddivine@yahoo.com

 
window.event.clientX and clientY in IE...not sure in netscape...

x is up&down y across

jared@aauser.com
 
> x is up&down y across

ummm.... that's not entirely accurate. X is the horizontal position and y is the vertical position.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top