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>