Quantcast
Channel: w3mentor » Javascript
Viewing all articles
Browse latest Browse all 100

Tracking movements of the mouse in Javascript

$
0
0
To get the position of the mouse, clientY and clientX properties are used in Internet Explorer. pageX and pagey properties in for all other browsers. Here is a complete listing showing the current position of the mouse in the browser’s status bar. <script language="JavaScript" type="text/JavaScript"> function showPosition(e) { var x, y; if (window.event) { x […]
Continue reading...

Viewing all articles
Browse latest Browse all 100

Trending Articles