问题
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