Hello.
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?

/Erik


<html>
<head>
<title>Browser detection</Title>

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

//detect the browserversion
browser="0";
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"};

</script>

</head>

<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">
</frameset>
</frameset>
<noframes><body bgcolor="#FFFFFF">

</body></noframes>

</html>