Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window size

Status
Not open for further replies.

Billybob777ca

Programmer
Aug 14, 2002
2
CA
How do I find the size of the current window?

I want to open another window with the same size as the current one.
 
You can get the size of the window in Mozilla(NS6) and probably Netscape this way:
window.outerWidth
window.outerHeight

However, Internet Explorer does not support that feature.

You can get the size of the part of document area in IE this way:
document.body.clientWidth
document.body.clientHeight
Thanks to jopie:

I couldn't find a way to detect it in IE, sorry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top