This script works fine for IE and Opera but not at all in NN and FF. Any suggestions, please. Thankyou.
<!--
var Netscape, MSIE, Opera, Unknown;
var Win, Mac, Other;
Netscape = navigator.appName == "Netscape";
MSIE = navigator.appName == "Microsoft Internet Explorer";
Opera = navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") > -1;
Firefox = navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Firefox") > -1;
Unknown = !(Netscape || MSIE || Opera || Firefox);
Win = navigator.userAgent.indexOf("Win") > -1;
Mac = navigator.userAgent.indexOf("Mac") > -1;
Other = !(Win || Mac);
if (Netscape)
{
alert("Netscape")
}
else if (Firefox)
{
alert("Firefox")
}
else if (Opera)
{
alert("Opera")
}
else if (MSIE)
{
alert("Explorer")
}
/-->
<!--
var Netscape, MSIE, Opera, Unknown;
var Win, Mac, Other;
Netscape = navigator.appName == "Netscape";
MSIE = navigator.appName == "Microsoft Internet Explorer";
Opera = navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") > -1;
Firefox = navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Firefox") > -1;
Unknown = !(Netscape || MSIE || Opera || Firefox);
Win = navigator.userAgent.indexOf("Win") > -1;
Mac = navigator.userAgent.indexOf("Mac") > -1;
Other = !(Win || Mac);
if (Netscape)
{
alert("Netscape")
}
else if (Firefox)
{
alert("Firefox")
}
else if (Opera)
{
alert("Opera")
}
else if (MSIE)
{
alert("Explorer")
}
/-->