Mega Code Archive

 
Categories / JavaScript Tutorial / Event
 

XY Marks the Spot for a popup window (IE)

< html> <head> <title>X/Y Marks the Spot</title> <script type="text/javascript"> function mouseDown() {   var locString = "X = " + window.event.screenX + " Y = " + window.event.screenY;   document.write(locString); } document.onmousedown=mouseDown; </script> </head> <body> </body> </html>