JavaScript Tutorial

adplus-dvertising
Abort In JavaScript
Previous Home Next

The Abort event handler executes JavaScript code or function when the user aborts loading an image.

Example :

<html>
<head>
<h1>r4r tutorial </h1>
<SCRIPT> 
function ImageAborted() {
 document.images[
 0].src = "images.jpg"
     }
</SCRIPT> 
</HEAD> 
<BODY>
<left>
<IMG SRC="images.jpg" onAbort=
"ImageAborted()">
<left>
<h3>An  Example  of Abort  Event </h3></left> 
</left>
</BODY>
</head>
<html>

Output :

Previous Home Next