Abakada HTML Demo: onerror Event Example for Non-Window Objects


The onerror event fires whenever an error occurs loading an object.

This example generates an error because a specified object, an image, can not be located. The onerror event is used here to trigger a function which displays a custom alert message.


View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.