Jump to content

How to get x and y co-ordinate of browser


sandeep_akhare
 Share

Recommended Posts

I have found that methods like this, intended to keep the header and/or horizontal menu on top, tend render poorly, because as you scroll down the page, the header and/or menu have to keep readjusting themselves for the new 'top', so it looks jittery to the end user. PS, I don't work here. george

Link to comment
Share on other sites

You can either read about the screenX and screenY properties of the window on the event of click on http://www.quirksmode.org/js/events_properties.htmlOr if you are using prototype.js, then you can also use -

Event.pointerX(event) -> NumberEvent.pointerY(event) -> Number

Returns the absolute vertical and horizontal position for a mouse event.stop Source : http://www.prototypejs.org/api/event

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...