Javascript to find X ,Y position of cursor
1 min read
window.onload = init; function init() { if (window.Event) { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = getCursorXY; } function getCursorXY(e) { document.getElementById(‘cursorX’).value = (window.Event) ? e.pageX : event.clientX... Read More
