JavaScript Reference/Javascript Properties/screenX mouse
"screenX-mouse" Example
<source lang="javascript">
<html> <body> <script language="JavaScript"> function function2() {
myX.innerHTML = window.event.offsetX; myY.innerHTML = window.event.offsetY;
} </script>
X Coordinate: 0
Y Coordinate: 0
<img src="yourimage.gif">
</body> </html>
</source>
"screenX-mouse" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |event | +----------------+--------------------------------------------------------------+
</source>
"screenX-mouse" Syntax and Note
<source lang="javascript">
Note: Read and write property. Return the mouse coordinates.
Syntax:
window.event.screenX = value
</source>