471,863 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,863 software developers and data experts.

Dynamically resize Browser Window based on its contents

Hi every one, I working on an web application in which clicking a button opens another window which will be dynamically populated with some data. Amount of data cannot be decided. I just want to fit the window size to the content of the data. Any suggestiosn??

Thanks a lot.
Oct 22 '08 #1
2 1937
self.moveto(window.width - (window.body.scrollWidth + <any value like 12 or 30 according to your convenience>), <any integer>);

this is a javascript code.
Oct 22 '08 #2
16,027 Expert Mod 8TB
Wouldn't it be the resizeTo method that you're looking for?
Oct 22 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Put 030516 in email subj to get thru | last post: by
4 posts views Thread by David Logan | last post: by
6 posts views Thread by David Hayes | last post: by
3 posts views Thread by Z D | last post: by
5 posts views Thread by Doug Gunnoe | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.