Link to home
Start Free TrialLog in
Avatar of petemod
petemod

asked on

Javascript img onFailure (reverse of onLoad)?

Is there a way to execute javascript when an image fails to load (ie 404, request timed out or 403 etc.....).
Simply, I have a few images, and some do not load and for these images I want to switch the src to something different (instead of the ALT text displaying).

Is this possible?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of GwynforWeb
GwynforWeb
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial