[thelist] js - top left coordinates of a browser window?

phil phil at xlab.co.uk
Wed Apr 11 03:30:48 CDT 2001

on 10/4/01 7:14 pm, Joe Crawford at jcrawford at avencom.com wrote:

> phil wrote:
>> Is there a way to retrieve the top left coordinates of a browser window
>> within the clients monitor. I assume javascript could do this, but I'm not
>> sure of the code. This needs to be reliable even if the client has moved the
>> browser window around in their monitor window, and working for IE and NN.
> Forgive me, but wouldn't this location always be:
> top: 0px;
> left: 0px;

sorry, badly explained, I meant the top left coordinates of the window,
relative to the top left point of the clients screen.

Joshua suggested window.screenTop and window.screenLeft but I'm having
diffculties getting IE5/Mac to work.


More information about the thelist mailing list