0

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...

Community
  • 1
  • 1
BernaMariano
  • 846
  • 2
  • 9
  • 27
  • 1
    You can get them on the mouseMove event, but not without an event. – ziad-saab May 28 '12 at 18:37
  • Nope - http://stackoverflow.com/questions/2601097/how-to-get-the-mouse-position-without-events-without-moving-the-mouse – Fluidbyte May 28 '12 at 18:38
  • @Fluidbyte: if you find a duplicate question, you can flag it so that users with 10k rep can vote to close from the 10k tools page. This makes closing duplicates swifter and easier for everyone. :-) – Andy E May 28 '12 at 18:40
  • I already flagged my own question... – BernaMariano May 28 '12 at 18:42

2 Answers2

0

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

lanzz
  • 42,060
  • 10
  • 89
  • 98
0

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

Sebas
  • 21,192
  • 9
  • 55
  • 109