js 如何判断他人的网站是否存在! http://blog.csdn.net/joseph0311/archive/2006/03/20/629921.aspx 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><body><input id="demo" value="http://www.eohosoft.com/" size="30" /><input type="button" onclick="UrlExists(demo.value)" value="check" /><script language="javascript">var xmlhttp=new ActiveXObject("Msxml2.xmlhttp");function UrlExists(url){ xmlhttp.open("HEAD",url,false); xmlhttp.send(); alert(xmlhttp.status=="404" ? "不存在" : "存在");}</script></body></html> <img src="http://www.http.com/images/logo.gif" onerror="alert('不存在')" onload="alert('存在')"/><img src="http://zi.csdn.net/760.90_5.gif" onerror="alert('不存在')" onload="alert('存在')"/> 就用net_lover的,至于那个提示,你需要设置一下IE的安全属性 双钻!! 偶稀饭!!支持!以前我也用过 <img ... onerror...> 这招的。 如何使iframe内容链接不跳出? 如何控制ie始终不出现ie竖向滚动条 validate 验证失效问题,在线等................................... 关于js数组动态赋值效率问题,有个不明白的~ javascript对JSON对象的传值问题 求javascript帮助文档 要全的 中文的 碰到一个问题求解,望高手能够帮帮我!!!!! js删除问题~~~~~~~~~~~~~~! 让人恨的层 如何在A.ASP中关闭B.ASP?在线等待。 高手请进来帮忙,谢谢 关于使用javascript write一个fomr 并提交的中文参数乱码问题
<body>
<input id="demo" value="http://www.eohosoft.com/" size="30" />
<input type="button" onclick="UrlExists(demo.value)" value="check" />
<script language="javascript">
var xmlhttp=new ActiveXObject("Msxml2.xmlhttp");
function UrlExists(url)
{
xmlhttp.open("HEAD",url,false);
xmlhttp.send();
alert(xmlhttp.status=="404" ? "不存在" : "存在");
}
</script>
</body>
</html>
<img src="http://zi.csdn.net/760.90_5.gif" onerror="alert('不存在')" onload="alert('存在')"/>