现在的位置: 首页 > 综合 > 正文

function checkBrowser()//判断浏览器

2012年05月30日 ⁄ 综合 ⁄ 共 239字 ⁄ 字号 评论关闭
/checkBrowser();
function checkBrowser()//判断浏览器
{
if (window.navigator.userAgent.indexOf("MSIE")>=1)
{
    //alert("IE");
}
    else if(window.navigator.userAgent.indexOf("Firefox")>=1)
    {
    //alert("FireFox");
    }
    else
    {
    //alert("Other");
    }
}

抱歉!评论已关闭.