Good day! I use the onError JavaScript event in <img> tags:
< img src="test.ru/img1.jpg" onError="fc_error()"> The question is: how do you know the status of the error with which the event was caused? That is, find out the error "404 Not Found" or "net::ERR\_INTERNET\_DISCONNECTED" . The main thing for me is to know if the error was 404 or not.
Tell me how to find out. Thank you in advance.