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 Rhinorhino 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
Joined
May 18, 2000
Messages
46
Location
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.
 
what do you muean, resize by the content. adam@aauser.com
 
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