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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you work out the window size?

Status
Not open for further replies.

skeamy

Programmer
Apr 6, 2000
23
GB
Hopefully someone knows the answer to this<br>I dynamically change the size of the browser window with the<br>following command <br><br>window.resizeTo 500,530<br><br>but I hate hard-coding anything so I would like to store the size of the browser window when I start. Does anybody know how you work this out? - I would have thought with the above command that this would equate to window.height and window.width but it doesn't have these properties - Ive tried most of the following<br><br>window.screen.height<br>window.screen.width - but these return the size of the full screen<br>window.screen.availheight/width - again not much use<br><br>If there is no properties has anybody come up with a formula to work this out<br><br>Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top