PDA

View Full Version : Detect exact window postion


Jerome
05-03-2003, 12:03 PM
Hi,

I like to detect the exact window position in relation to the users screen.

X-coordinate
Y-coordinate
Height
Width

I tried to alert the following:

top.window.offsetWidth
window.offsetWidth
window.clientWidth
window.body.clientWidth

But this gives me an unidentified message

By the way it's more curiosity for a solution then necassary!

Thanks for Your effort,
Jerome

Graeme Hackston
05-03-2003, 03:34 PM
I think this is IE only

window.screenTop
window.screenLeft

Jerome
05-03-2003, 07:16 PM
Thanks,
jerome

liorean
05-03-2003, 08:01 PM
window.screen:
top = absolute top pixel (should be 0)
left = absolute left pixel (should be 0)
width = max screen width (should be same as resolution)
height = max screen height (should be same as resolution)
availWidth = screen width minus fixed objects such as taskbar
availHeight = screen height minus fixed objects
availTop = screen top pixel, depending on fixed objects
availLeft = screen left pixel, depending on fixed objects

Those are the screen properties... as for window:
In moz:
innerWidth
innerHeight
outerWidth
outerHeight
screenX
screenY

In ie:
window:
screenLeft
screenTop

pin
05-29-2003, 08:43 PM
Is it possible to obtain browser window width/height properties.
No matter if with chrome included or not.
I couldn't find this info for IE

Any help?
Thanks!

Pavlin