Trying to fire off (trigger) a click event. Its easy to do in jQuery, but cannot figure out how to set the coordinates of the event and send them along.
Essentially, I need to trigger a click at a specific location (which is calculated prior to the trigger() call).
Any way to do this (in jQuery or otherwise)?
Thanks -
Set the
pageX
andpageY
properties (which are normalized) on the event object and pass it to.trigger()
, like this:The ".trigger()" call accepts an "extraParameters" parameter that you could use to stuff the XY coords in I would think. Documentation