Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var element = document.getElementById('some-id');
- var position = element.getBoundingClientRect();
- var x = position.left;
- var y = position.top;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement