JavaScript

Daniel Weschke

November 19, 2018

1 check if a file exists

function UrlExists(url)
{
    var http = new XMLHttpRequest();
    http.open('HEAD', url, false);
    http.send();
    return http.status!=404;
}