function FileExists(strURL)
{
oHttp = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
oHttp.open("GET", strURL, false);
oHttp.send();
if (oHttp.responseText.indexOf("HTTP Status 404") <= 0)
return true;
alert ("File: "+strURL+" is being loaded");
return false;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment