function getURL(url) {

        var xmlhttp = new ActiveXObject( "Microsoft.XMLHTTP");

        xmlhttp.open("GET", url, false);

        xmlhttp.send();

        if(xmlhttp.readyState==4) {

            if(xmlhttp.Status != 200) alert("不存在");

            return xmlhttp.Status==200;

        }

        return false;

}

---------------------

作者:小平_2015

来源:CSDN

原文:https://blog.csdn.net/ws11352369/article/details/53577047

版权声明:本文为博主原创文章,转载请附上博文链接!

Created with the Personal Edition of HelpNDoc: Generate Kindle eBooks with ease