Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:09:37+00:00 2026-06-17T16:09:37+00:00

In IE 7, 8, 9, chrome, and firefox the pageX/Y property on a mouseHandler

  • 0

In IE 7, 8, 9, chrome, and firefox the pageX/Y property on a mouseHandler refers to the position relative to the top of the page, while the clientX/Y property gives the position relative to the current viewport. In IE 10, it looks like pageX/Y is the same as clientX/Y. Is there a known work around?

You can experiment with this http://jsfiddle.net/FCTUW/2/ just scroll to the bottom of the page in the bottom right and move your mouse over the grey rectangle.

Here is the code used to find the coordinates since SO wants code…

canvas.mousemove(function(e){
var pageCrds = '('+ e.pageX +', '+ e.pageY +')',
    clientCrds = '('+ e.clientX +', '+ e.clientY +')';

Does anyone know why this change was made, or how to get the correct page coordinates?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:09:38+00:00Added an answer on June 17, 2026 at 4:09 pm

    I’m not seeing the same results you are. You may not be viewing the actual results of your script – or perhaps you accidentally wrote the same property twice. Either way, the results I have below are from Internet Explorer 10, on Windows 8, running your demo.

    enter image description here

    This is in line with what MSDN states regarding client and page values:

    Client coordinates do not reflect the scroll offset of the page. To get the mouse pointer’s coordinates relative to the upper-left corner of the document, use the pageX and pageY properties.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My page works great in Chrome and Firefox but its not being decoded well
When Google's main page communicates with Firefox or Chrome it uses a particular type
For chrome the event fires on page load, but in firefox it fires the
The following page looks good in Firefox, Safari, Chrome, IE6 and IE8... but it
Check this page. On either firefox, chrome, or IE9 / 10 the tabs on
the page works in firefox, chrome, and safarie. only breaks in ie9 SCRIPT65535: Unexpected
Please see this page: http://goo.gl/U9cQl In Firefox, the margin-bottom property is applied correctly to
when i test my web-page in chrome and firefox they work fine. but in
While loading a page, I want to get the top of the panel. But
Natively in chrome/firefox, hovering over an element shows its title with a yellow background

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.