By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,006 Members | 444 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,006 IT Pros & Developers. It's quick & easy.

Dynamically resize Browser Window based on its contents

P: 2
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
Share this Question
Share on Google+
2 Replies

P: 2
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

Expert Mod 15k+
P: 16,027
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.