window.onError : Window Object « Window « JavaScript Tutorial
- JavaScript Tutorial
- Window
- Window Object
The onError event handler is fired when an error occurs loading the page.
<html>
<body onError='alert("Error: There has been an error loading this page.")'>
</html>