Get mouse position in mouse down event (IE) : Mouse Event « Event « JavaScript DHTML
- JavaScript DHTML
- Event
- Mouse 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>
Related examples in the same category