<html xmlns="http://www.w3.org/1999/xhtml" >
    <SCRIPT LANGUAGE="JavaScript">如何判断浏览器类型_firefox_04
function IsIE()
如何判断浏览器类型_firefox_04{
if (window.navigator.userAgent.indexOf("MSIE")>=1)
//如果浏览器为IE
如何判断浏览器类型_firefox_04{
alert("IE浏览器");
}
else //如果浏览器为Firefox
如何判断浏览器类型_firefox_04{
if (window.navigator.userAgent.indexOf("Firefox")>=1)
如何判断浏览器类型_firefox_04{
alert("Fixfox浏览器");
}
}
}
</script>
<head runat="server">
    <title>判断浏览器类型</title>


</head>
<body onload="IsIE();">
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>