This has been very helpful to me too, however I'm using an external browser detection script which parses down the appName and appVersion into short phrases, e.g. ie4, ie55, ns6 etc. I'm not sure how to pass these variables through a hidden field in a form.
Please could someone take a look and see what I could do to call the short phrases instead of getting the standard response of eg. Microsoft Internet Explorer, Windows NT. etc etc.
Thanks in advance,
Scooter
This is my code:
<head>
<script language="javascript" SRC="JavaScript/browser.js"></script>
This is the content of browser.js:
function Browser() {
var b=navigator.appName;
if (b=="Netscape"

this.b="ns";
else if ((b=="Opera"

|| (navigator.userAgent.indexOf("Opera"

>0)) this.b = "opera";
else if (b=="Microsoft Internet Explorer"

this.b="ie";
if (!b) alert('Unidentified browser./nThis browser is not supported,');
this.version=navigator.appVersion;
this.v=parseInt(this.version);
this.ns=(this.b=="ns" && this.v>=4);
this.ns4=(this.b=="ns" && this.v==4);
this.ns6=(this.b=="ns" && this.v==5);
this.ie=(this.b=="ie" && this.v>=4);
this.ie4=(this.version.indexOf('MSIE 4')>0);
this.ie5=(this.version.indexOf('MSIE 5')>0);
this.ie55=(this.version.indexOf('MSIE 5.5')>0);
this.opera=(this.b=="opera"

;
this.dom=(document.createElement && document.appendChild && document.getElementsByTagName)?true:false;
this.def=(this.ie||this.dom); // most used browsers, for faster if loops
var ua=navigator.userAgent.toLowerCase();
if (ua.indexOf("win"

>-1) this.platform="win32";
else if (ua.indexOf("mac"

>-1) this.platform="mac";
else this.platform="other";
}
is = new Browser();
function writebrowserdetails()
{
document.login.browsertype.value = (Browser);
document.login.browserversion.value = (Browser);
}
</head>
<body onload="writebrowserdetails();">
<form name="login">
<input type="hidden" name="browsertype">
<input type="hidden" name="browserversion">
</form>
</body>