there is no general way to do it on the client side, although people use onerror event on <IMG>, <LINK> or <OBJECT> to test if a site is available (you have to add the right url for an image, css file or class/ocx file)but you can do it on the server, but sending a "HEAD" request with the URL to the remote site, if you get a status of 404, you know the link is bad
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货