PDA

View Full Version : browser window position


Edit
02-07-2003, 05:01 PM
hi,

is there any way to get the top and left position of the browser window?

thanks in advance
edit

Quiet Storm
02-07-2003, 08:53 PM
If you're looking to center an existing window, I think there's a way to do that using a window.moveBy function.

GoHF
02-07-2003, 09:37 PM
window.screenLeft
window.screenTop

I dont know wether these refer to the browser window, or only to the area where the html is shown.
You can control the position of the window by using the window.moveTo(x,y) function, x and y being the coordinates you want the top left corner of the browser window to go to.