How to detect on-page 404 errors using JavaScript?
问题 I have an HTML page where several JavaScript, CSS and images files are referenced. These references are dynamically injected and user can manually copy the HTML page and the support files to another machine. If some JS or CSS are missing, the browser complains in the console. For example: Error GET file:///E:/SSC_Temp/html_005/temp/Support/jquery.js I need somehow these errors reported back to me on the inline JavaScript of the HTML page so I can ask user to first verify that support files