JavaScript/Working With The Mouse
Previous: W3C event handlers Index Next: Forms

JavaScript Console Tests

Test x,y

window.onmouseover = function{document.title = [event.x,event.y];};

Test offsetX,offsetY

window.onmouseover = function{document.title = [event.offsetX,event.offsetY];};

Test clientX,clientY

window.onmouseover = function{document.title = [event.clientX,event.clientY];};

Test pageX,pageY

window.onmouseover = function{document.title = [event.pageX,event.pageY];};

References

Further reading


Previous: W3C event handlers Index Next: Forms

  This article uses material from the Wikipedia page available here. It is released under the Creative Commons Attribution-Share-Alike License 3.0.


JavaScript/Working_with_the_mouse
 

Manage research, learning and skills at IT1me. Create an account using LinkedIn to manage and organize your IT knowledge. IT1me works like a shopping cart for information -- helping you to save, discuss and share.


  Contact Us  |  About IT1me.com |  IT Training & References |  IT Careers |  IT Hardware |  IT Software |  IT Books