Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重複の可能性: イベントなしで (マウスを動かさずに) マウスの位置を取得する方法は?
イベントなしでマウスの現在の座標を取得することは可能ですか?
Javascriptのみ!jQueryがありません...
プレーンな JavaScript でも jQuery の助けを借りても、それは不可能です。少なくともmousemoveイベントが必要です。
mousemove
No, such thing is impossible with javascript only and without events.