JavaScript/Working with the mouse

Category:Book:JavaScript#Working%20with%20the%20mouse%20


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

    Category:Book:JavaScript#Working%20with%20the%20mouse%20 Category:Book:JavaScript#Working%20with%20the%20mouse%20
    Category:Book:JavaScript Category:Pages using the JsonConfig extension