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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.