0
Mousse coordinate
How can I have mouse coordinate in javascript ? only with javascript.
8 Answers
+ 2
The listener is
document.mouseover
0
With any mouse event:
onmousemove = function(event)
{
event.clientX // X on screen
event.clientY // Y on screen
event.pageX // X on the page
event.pageY // Y on the page
}
0
Thanks, and how can I do without click, Just gliss mouse on the screen.
0
You mean by just moving the mouse around?
0
Yes
0
And did you read the example I posted?
0
I read it, but i work on Phone. Maybe this is different
0
Try using touch events, touchstart, touchmove, and touchend? Not sure about the last one