JavaScript - How to stop mouse movement

前端 未结 3 510
南旧
南旧 2021-01-23 05:56

No jQuery possible.

How to disable / stop mouse movement with JavaScript?

What to do: If the mouse is being moved to, let\'s say,

3条回答
  •  孤城傲影
    2021-01-23 06:47

    Javascript can read mouse position but not set it. The mouse cursor properties exist outside the HTML Document Object Model and thus are beyond the reach of Javascript. Mouse events however are captured and thus readable / event modification also permissible (mouse hover, mouse over, mouse out, mouse click, dblclick).

提交回复
热议问题