I'd like to know the correct function/method to find out if an image has succesfully loaded on my website. So for instance if it hasn't loaded I want to show a standard image.

Thanks