全部博文(91)
分类: 系统运维
2008-09-05 14:24:18
<html xmlns="" >
<SCRIPT LANGUAGE="JavaScript">
function IsIE()

{
if (window.navigator.userAgent.indexOf("MSIE")>=1)
//如果浏览器为IE

{
alert("IE浏览器");
}
else //如果浏览器为Firefox

{
if (window.navigator.userAgent.indexOf("Firefox")>=1)

{
alert("Fixfox浏览器");
}
}
}
script>
<head runat="server">
<title>判断浏览器类型title>

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