Hi All,

O.k I have this little script that I want to use to detect which browser is being used and direct it to the appropriate page, depending on whether it's ie or netscape.

The code:

<script language="JavaScript">
function browserRouting() {
bname = navigator.appname;
bVer = parseInt(navigator.appVersion);
if (bname == "Netscape" && bVer >=3) parent.location='http://www.anywhere.com'
else if (bname == "Microsoft Internet Explorer" && bVer >=2) parent.location='http://www.here.com'
else parent.location='http://www.orhere.com';

My problem is, I'm new to javascripting an don't know where to put the script. I put it in the <head> tag, <body> tag, in between the <head> and <body> tag but it doesn't work. I don't get any errors but it does not go to the specified page.

Any thoughts