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.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.