Created
April 7, 2017 17:18
-
-
Save juliozuppa/cd1ac859f9e3674a12c63440900e3470 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// COORDENADAS | |
// o objeto Event possui as propriedades clientX e clientY que especificam as | |
// coordenadas do cursor do mouse em relação à janela contêiner | |
function coordenadas(event) { | |
console.log("Coordenadas de X: " + event.clientX + | |
", coordenadas de Y: " + event.clientY); | |
} | |
window.addEventListener("click", coordenadas); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment