Jump to content

How to get x and y co-ordinate of browser


sandeep_akhare

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...