How do I move the mouse cursor when a key is pressed?
What do I开发者_如何学Go put in my onkeydown to move the mouse to a specified [x,y]?
nothing. you don't get to control the mouse from javascript.
however, you may be able to simulate the action you're looking for.
Simulating click with javascript on document
Seriously? You want to move my mouse pointer without my permission? Get real! You can imagine how such capabilities could be used for malicious purposes.
精彩评论