X/Y Marks the Spot for a popup window (IE) : Window Properties « Window Browser « JavaScript DHTML






X/Y 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>

   
    
    
  








Related examples in the same category

1.Modifies the properties and the contents of the browser's windows
2.Access window properties
3.Displaying the Associative Properties Area of a Window Object
4.Change status bar with mouse click
5.Output tag name from window event to status bar
6.Change window location
7.Open a new window and load new page
8.Set text for windows status bar
9.References to Window Objects
10.A Main Window Document
11.Open a new window with your own options