CheckBrowser.js
--------------------------------------------------------------------
<!--
if (window.navigator.userAgent.indexOf("MSIE")>=1)
{
//ΪIE
//setActiveStyleSheet("default.css");
}
else
{
if (window.navigator.userAgent.indexOf("Firefox")>=1)
{
//ΪFirefox
//alert("ʹõΪFirefox ڼ⣬ʹIE");
alert("The browser you use is Firefox. Because of compatibility, please use IE.");
location.href="javascript:window.close()";
}
else
{
//Ϊ
//alert("ʹõIE ڼ⣬ʹIE");
alert("The browser you use is not IE. Because of compatibility, please use IE.");
location.href="javascript:window.close()";
}
}
//-->
检测浏览器的js
最新推荐文章于 2025-12-18 10:02:55 发布
878

被折叠的 条评论
为什么被折叠?



