August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onError="command"
The onError event handler of the Window object is fired when an error occurs loading the page. You may find this useful to try and reload the page, using the reload() method of the Location object.
Listing 7.557 is an example of placing the onError event handler in the <body> tag. If there is an error when loading this page, an alert box will be displayed to the user.
<body onError='alert("Error: There has been an error loading this page.")'>
|
Read now
Unlock full access