Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why doesn't Event.ClientX or Event.ClientY work when you list examples of it and say it works?!?!?!

more options

I am building a site and on your API says that event.ClientX and event.ClientY should work. I even define the event and pass it in and it still won't give me the position of the mouse! Is there any other way to get the x,y coordinates of the mouse inside a javascript function?

I am building a site and on your API says that event.ClientX and event.ClientY should work. I even define the event and pass it in and it still won't give me the position of the mouse! Is there any other way to get the x,y coordinates of the mouse inside a javascript function?

Chosen solution

http://jsfiddle.net/CFs3c/ It works fine, you just only click on the text. :-)

Ler a resposta no contexto 👍 0

All Replies (2)

more options

Chosen Solution

http://jsfiddle.net/CFs3c/ It works fine, you just only click on the text. :-)

guigs modificouno o

more options

For some reason when I do the same thing, but also pass in the id of a gmaps marker it doesn't work :'(