I\'m trying to use jquery to detect whether an iframe fails to load or the page doesn\'t exist, but the code below isn\'t working:
iframe
$(\'#frame\').e
iframe do not trigger onerror event even if it fails to load the document. I think load will be triggered even in this case and you can check for the status code to determine if the page is loaded successfully or no.