Full version: jsB@nk » Pointer » X and Y coordinate from your mouse
URL: https://www.javascriptbank.com/x-and-y-coordinate-from-your-mouse.html
This little Dynamic HTML script shows how you can get the X and Y coordinate of you mouse in either MSIE or Netscape with great ease. It's handy for many Dynamic applications.
Full version: jsB@nk » Pointer » X and Y coordinate from your mouse
URL: https://www.javascriptbank.com/x-and-y-coordinate-from-your-mouse.html
<SCRIPT LANGUAGE="JavaScript">ns4 = (document.layers)? true:falseie4 = (document.all)? true:falsefunction init() {if (ns4) {document.captureEvents(Event.MOUSEMOVE);}document.onmousemove=mousemove;}function mousemove(e) {if (ns4) {var mouseX=e.pageX; var mouseY=e.pageY}if (ie4) {var mouseX=event.x; var mouseY=event.y}status="x= "+mouseX+", y= "+mouseY;}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<body onLoad="init()"><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->