Display current mouse position in status bar (IE) : Mouse Event : Event JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Event » Mouse Event »

 

Display current mouse position in status bar (IE)

















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

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Event
» Mouse Event