Mega Code Archive

 
Categories / JavaScript DHTML / Event
 

Get mouse position in mouse down event (IE)

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> function clicked() {     window.status = "X = " + event.x + " Y = " + event.y } </script> </head> <body onmousedown="clicked()"> </body> </html>