JQuery forces mouse movement and clicks

Demo: http://jsfiddle.net/thisizmonster/VRPDa/

Goal:

  • The mouse should move to the button position (the button position should be automatically calculated)
  • Click event

How to do it?

Edited / Added

Since everyone said that I can’t move the mouse coordinate, I think that it failed. By the way, my main goal is because of the Facebook Comment plugin. By default, its impressions are "by social ranking." My default requirement is "Reverse Chronological." But the plugin itself is placed in an iFrame, so I can not access its elements. Therefore, I decided that after loading the page, quickly move the mouse and select the option and return the mouse coordinate. His failure I think :(

+4
source share
2 answers
  • Impossible
  • $('#item').click(); or $('#item').trigger('click'); (use the latter for other triggers like mouseenter
+7
source

Fortunately, you cannot control the position of the mouse pointer through Javascript.

+8
source

All Articles