This is a Frankenpost - it was on the blog before I migrated from Community Server to DasBlog. It's one that I find useful so I'm porting it over.
Here's something I cobbled together as a replacement for a frameset. The technique takes advantage of the overflow CSS property applied to the HTML doc and a div within it to achieve the appearance of a frameset. I used it in a MasterPage scenario, but it would work on a single page just as well.
First you need to structure your page something like this:
Your CSS should look like this:
Hiding the overflow for the HTML has the effect of removing the scrollbar from the browser window. We add it back to our div
And you'll need this JavaScript (which I found here):
The resulting page will show the contents of the divPlaceHolderWrapper (in this case - whatever is in the content area of the page using this MasterPage) with a scrollbar if necessary. If the content does not fill up the window, then no scrollbar appears. While resizing the browser window in IE divPlaceHolderWrapper is continuously resized. In Firefox the div is resized once the resizing of the browser window is complete.
All code examples are presented "as is", and the user assumes all responsibility for use. The opinions expressed in this site are mine and do not reflect those of my employer.