<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi!<BR>
Interesting, my mail is adding some funny font sizes recently, while yours is posting recursively!<BR>
<BR>
>Yes I know that, - 'couldn't leave the height property empty, could I?<BR>>It wasn't a complaint -- I just simply meant that your code worked <BR>I understand.<BR> <BR>>??? Fit's exactly what?<BR> The desired body width!<BR>
<BR>>I'm sorry, I don't really know what you're trying to do. However, if <BR>>you will explain it, I will be more than happy to test.<BR><BR>
Geoff was asking of a way to shrink the main window so he could open another one,<BR>
but make sure the body width fits the given new window size. So he needed to know<BR>
a foreheads what size <FONT>should the window be</FONT> set to, in order that the contents will fit properly.<BR>
Since he could get the body width, but not the window width in total including eventual vertical <BR>
scrollbars when present. (At least that's how I understood his problem).<BR>
<BR>
So my approach was as follows:<BR>
<UL>
<LI>
<DIV>Get the Browser type by vendor name. </DIV></LI>
<LI>
<DIV>Check if Vscrollbar is needed, therefore present or not.</DIV></LI>
<LI>
<DIV><FONT>Assign a known scrollbar width to var with alternative values for on or off</FONT></DIV></LI>
<LI>
<DIV>Declare unique browser frame constant widths connected to a BR vendor name.</DIV></LI>
<LI>
<DIV>Use the detected browser name as instruction to get curr br frame size and set frame variable one-shot.</DIV></LI>
<LI>
<DIV>Gather all processed var values into our final var making it available for other script demands. So we can finally make the window resize around any given document body width. </DIV></LI></UL>
Other thing in mind was not to use functions or use up any "event" that may be needed by any other ready scripts on the page. <BR>
<BR>
*For correct scrollBar detection the <BODY SCROLL=Auto> <FONT>should</FONT> not be omitted if IE encountered!<BR>
<BR>~~~<BR>
>Yes, from my experience 16 pixel wide scrollbars have been typical of <BR>>Mac since 1984.<BR>That's great news, thanks tedd. It means that this code is widely compatible now.<BR>
Pity, new generations of NN and OP are not supporting "window.resizeTo()".<BR>
<BR>
Anybody know why???<BR>~~~<BR><BR>
> Interesting, on the Mac in Safari, FireFox, IE and Netscape, it works <BR>> throughout all browser window sizes. In Opera, it doesn't work -- but <BR>> Opera has problems with the url as well.<BR>> <BR>> What browser and OS are you running the test on?<BR><BR>
PC Win / IE, <FONT><FONT>Fx </FONT></FONT><BR>Regards.<BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR> Troy III<BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><br /><hr />Express yourself instantly with Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>