This is a bit tricky, but what I want to do is create a browser popup that automatically resizes (height only) to the height of the content. For instance, let's say I have a page with 5 lines of text and another one with 30. The window should automatically resize in order to display all the contents without showing scrollbars.

Here's the tricky part. If the height is larger than a specified value (400 px), scrollbars should come up, as this would be the max height allowed.

I want this because the contents of the popup are dynamic.

Thanks!

Reply

Name:

Email:

Subject:

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto:
are converted to links.