• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Browser coords in FF not working but working in IE

 
K. Tsang
Bartender
Posts: 3521
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I want to display the browser coordinates in both IE and FF but I only got it work in IE.

In IE I got the coords from e.clientX and e.clientY; however I expect FF to return e.pageX and e.pageY but it isn't. Hence I got 0 for the alerts. Anyone know why? Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pageX and pageY are not defined as part of the DOM Level 2 Standard.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not get the position of the cursor when they click the X in browser other than IE. I am not sure if you can do it in IE7.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic