Thibstars

Print clicked dom element

Jul 12th, 2017
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.onclick = function(e) {
  2.     console.log(e.srcElement);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment