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

Automatic Window resizing 2

Status
Not open for further replies.

LuvASP

Programmer
May 18, 2000
46
US
I'm trying to find a property of the Javascript Window object that resizes the window according to the content presented. I open a window using the OPEN method specifying some features with the height and width, scrollbars, resizable etc.

I want the window to resize automatically according to the content. Any help would be appreciated.

Thanks.
 
Instead of giving the user the ability to resize the window, have the window dynamically resized on its own depending on the amount of content presented in the window. In other words, display all content without having scrollbars.

Hope this make sense.
 
that might be a bad idea if someone uses a small screen resolution, but, if you put all your content in a <span> tag... you can get the

spanid.offsetHeight and spanid.offsetWidth and window.resizeTo(spanid.offsetHeight, spanid.offsetWidth) adam@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top