Javascript – Track mouse position
The mouse’s position is reported on the event object received by a handler for the mousemove event, which you can attach to the window (the event bubbles): (Note that the body of that if will only run on old IE.) Example of the above in action – it draws dots as you drag your mouse over the page. (Tested on IE8, IE11, … Read more