/ Published in: JavaScript
The key to making it work is the event listener that get added using the DOM method that binds it to the mousemove event and declares the event handler. Most event can be bound to a handler this way.
URL: http://coboldinosaur.com/pages/Capture_Mouse_Position.html