XMLHTTP.Open HEAD detects whether the network link exists ..

xiaoxiao2021-03-06  59

To detect the existence of the link, you don't want to load the links of the link..

XMLHTTP.Open "Head", URL, FALSE can be implemented. .

Related code:

function checkStatus (url) {XMLHTTP = new ActiveXObject ( "Microsoft.XMLHTTP") XMLHTTP.open ( "HEAD", url, false) XMLHTTP.send () return XMLHTTP.status == 200} alert (checkStatus ( "http: / /dotnet.aspx.cc/ ")) Thank Net_LOVER (Mencius E chapter) enthusiastic help related link http://community.9cbs.net/expert/topic/3425/3425220.xml?temp =.2533991

转载请注明原文地址:https://www.9cbs.com/read-109171.html

New Post(0)