Guest User

Untitled

a guest
Dec 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <script>
  2. $("*", document.body).click(function (e) {
  3. var offset = $(this).offset();
  4. e.stopPropagation();
  5. $("#result").text(this.tagName + " coords ( " + offset.left + ", " +
  6. offset.top + " )");
  7. });
  8.  
  9. </script>
  10.  
  11. <span id="result">coordinates will show here on click</span>
Add Comment
Please, Sign In to add comment