Javascript mouse coordinates without event [duplicate]

瘦欲@ 提交于 2019-12-12 04:04:21

问题


Possible Duplicate:
How to get the mouse position without events (without moving the mouse)?

Is it possible to get the mouse current coordinates without any kind of event?

Only Javascript! No jQuery...


回答1:


No, such thing is impossible with javascript only and without events.




回答2:


It is not possible, neither with plain javascript, nor with jQuery's help. You need at least a mousemove event.



来源:https://stackoverflow.com/questions/10789044/javascript-mouse-coordinates-without-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!