Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get mouseclick

function printMousePos(event) {
  document.body.textContent =
    "clientX: " + event.clientX +
    " - clientY: " + event.clientY;
}

document.addEventListener("click", printMousePos);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #mouseclick
ADD COMMENT
Topic
Name
2+2 =