How to get position of my cursor in Mozilla Firefox? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to get position of my cursor in Mozilla Firefox?

function or anything to get the coordinates of my cursor

17th Mar 2018, 2:30 PM
Ranjit Kumar
Ranjit Kumar - avatar
11 Answers
+ 5
nice question but I don't have an answer for it
22nd Mar 2018, 11:22 PM
Johnson Hope Opeoluwa
Johnson Hope Opeoluwa - avatar
+ 2
what?
17th Mar 2018, 4:15 PM
Sumit Dwivedi
Sumit Dwivedi - avatar
+ 1
Javascript: var x = event.clientX Var y = event.clientY Now u have the x and y position of ur mouse
28th Mar 2018, 4:08 PM
Doodz
Doodz - avatar
+ 1
still not working
29th Mar 2018, 7:11 AM
Ranjit Kumar
Ranjit Kumar - avatar
+ 1
Post ur code pls. Did u include the js script in html or php script? If so, u can do a mouseover and call ur function.
29th Mar 2018, 8:14 AM
Doodz
Doodz - avatar
+ 1
yes
29th Mar 2018, 5:35 PM
Ranjit Kumar
Ranjit Kumar - avatar
+ 1
my code is working in Chrome but not in Mozilla Firefox
29th Mar 2018, 5:36 PM
Ranjit Kumar
Ranjit Kumar - avatar
+ 1
Do u have the newest version of Firefox?
29th Mar 2018, 6:40 PM
Doodz
Doodz - avatar
+ 1
yes
30th Mar 2018, 8:55 AM
Ranjit Kumar
Ranjit Kumar - avatar
0
try by putting different value of top ,left and right.
28th Mar 2018, 2:56 AM
tarun pandey
tarun pandey - avatar
0
JS? HTML? CSS?
28th Mar 2018, 3:54 PM
Manfred Gipp
Manfred Gipp - avatar