Handle Error event on body in JavaScript
Description
The following code shows how to handle Error event on body.
Example
<html>
<body onError='alert("Error: There has been an error loading this page.")'>
</html>
The code above generates the following result.
Javascript Tutorial Browser Event
Access window event in JavaScript
Add event handler for body onload event in ...
Add event handler for window on load event ...
Add onload event handler by using attribute...
Cancel event with preventDefault in JavaScr...
Filter click event to capture in JavaScript
Filter event to catch in JavaScript
Handle document on changed event in JavaScr...
Handler document on abort event in JavaScri...
Access window event in JavaScript
Add event handler for body onload event in ...
Add event handler for window on load event ...
Add onload event handler by using attribute...
Cancel event with preventDefault in JavaScr...
Filter click event to capture in JavaScript
Filter event to catch in JavaScript
Handle Error event on body in JavaScript
Handle browser window resize event in JavaS...Handle document on changed event in JavaScr...
Handler document on abort event in JavaScri...