I am using the jquery library to load the contents of an html file. Something like that:
$ ("# Main"). Load ("login.html")
If the file (in this case "login.html") does not exist, I would like to detect it so that I can redirect the user to the error page, for example. Any ideas how I can determine if a file exists for download?
source
share