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
最新推荐文章于 2024-08-22 14:32:34 发布