http://www.difriends.com Ricardo Sánchez why "proper"? You can use an onerror method, as shown below, to display an error message in case there is any problem in loading an image.
Error.prototype.name Error name. Specifically it ignores: loading errors (response >= 400). script loading errors (response >= 400). Microsoft Error.prototype.description Error description. have a peek here When an error occurs, an event gets thrown at some point.
For example, the following line causes a runtime error because here the syntax is correct, but at runtime, it is trying to call a method that does not exist.