jquery - How to simulate a click by using x,y coordinates in JavaScript? -


Is it possible to use the given coordinates for simulating a click in JavaScript in a webpage?

You can post an click event, though it is similar to the actual click is not. For example, it can not be used to consider clicking a cross-domain iframe document.

Support all modern browsers document.elementFromPoint and HTMLElement Prototype (click) , at least IE6, Firefox 5, Chrome any Any version of Safari and possibly Safari which you would like to care about will also follow the link and submit the form:

  document.elementFromPoint (x, y) .click () ;  


Comments