X/Y Marks the Spot for a popup window (IE) : Event Parameter « Event « JavaScript Tutorial






<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>








15.2.Event Parameter
15.2.1.Pass key event as the function parameter
15.2.2.Use mouse event as the function parameter
15.2.3.X/Y Marks the Spot for a popup window (IE)
15.2.4.Get event Phase: CAPTURING,BUBBLING