I would like to get the variable pix in the cols position in the frameset. How do I
write then? The meaning is that the cols should be different with different browsers.
I have tried to replace 183 in the frameset with
<Script Language="JavaScript"> document.write(pix); </script>
but it dosnīt work.
So how do I call the variable pix inside the frameset?


<title>Browser detection</Title>

<Script Language="JavaScript">
if (browsername.indexOf("Netscape")!=-1) {browsername="NS"}
{if (browsername.indexOf("Microsoft")!=-1)
else {browsername="N/A"}};

//detect the browserversion
if (navigator.appVersion.indexOf("2.0")!=-1) {browser="2"};
if (navigator.appVersion.indexOf("3.0")!=-1) {browser="3"};
if (navigator.appVersion.indexOf("4.0")!=-1) {browser="4"};

// Send visitor to relevant pages
if (browsername=="NS")
{var pix="189"};
if (browsername=="MSIE")
{var pix="183"};
if (browsername=="N/A")
{var pix="183"};



<frameset border="false" frameborder="0" framespacing="0" rows="98,*" cols="*">
<frame src="u.htm" SCROLLING="no">
<frameset border="false" frameborder="0" framespacing="0" cols="183,*" rows="*">
<frame src="v.htm" SCROLLING="no">
<frame src="main.htm">
<noframes><body bgcolor="#FFFFFF">