Jump to content

How to get x and y co-ordinate of browser

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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...