Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Set Mouse Position (not cursor position)

I have a link that, when clicked, I would like it to move the position of the mouse to the right (or anywhere within the viewport, for that matter).

in code it would probably look similar to the following:

$('a#expand').click(function(e){     $(document)        .mouseXPos(e.pageX + 50)        .mouseYPos(e.pageY + 50); }); 

Chaining might not be necessary, of course, but a similar 'set mouse position' functionality is what I am after.

I've seen solutions to move the cursor position to a certain spot in the text, but I didn't glean much from them.

like image 989
Michael Avatar asked Jul 30 '09 19:07

Michael


1 Answers

There is no mechanism for moving the mouse via JavaScript.

like image 71
MyItchyChin Avatar answered Oct 05 '22 08:10

MyItchyChin