I am writting my DHTML page using JavaScript and I need to know How to read the mouse pointer position.
I hope you can help me to solve this problem.
Thank you.
Try this in the HEAD tags in a HTML page(IE)
<SCRIPT LANGUAGE="JavaScript" FOR="document" EVENT="onmousedown">
var mY = 0;
var mX = 0;
mX = event.clientX
mY = event.clientY
alert("X = " + mX + ": Y = " + mY);
</SCRIPT>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.