Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $("*", document.body).click(function (e) {
- var offset = $(this).offset();
- e.stopPropagation();
- $("#result").text(this.tagName + " coords ( " + offset.left + ", " +
- offset.top + " )");
- });
- </script>
- <span id="result">coordinates will show here on click</span>
Add Comment
Please, Sign In to add comment