...
Below is the simple code to check the availability of the file on the internet.
Code Block |
---|
fileexistsfile_exists = function(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404; } |
...
...
Below is the simple code to check the availability of the file on the internet.
Code Block |
---|
fileexistsfile_exists = function(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); return http.status!=404; } |
...