detect iframe load error
问题 I am loading a user-selected page into an iframe using the src property. If the load fails, I would like to report the problem in terms that will make sense to the user. iframe does not, in general, support onerror according to http://www.w3schools.com/jsref/dom_obj_frame.asp. The page may come from the user's domain, not mine, so I cannot view the content of the iframe. I can set a timeout and cancel it from my onload handler if the load is successful, but it would need to be a long timeout