Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $(document).click();
  2.  
  3. var mousePosition;
  4. $(window).on('mousemove', function (e) {
  5. mousePosition = {
  6. x: e.clientX,
  7. y: e.clientY
  8. }
  9. });
  10.  
  11. function makeClick () {
  12. var el = document.elementFromPoint(mousePosition.x, mousePosition.y);
  13. $(el).click();
  14. }
  15.  
  16. $("item").click();
  17.  
  18. document.getElementById('item').click();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement