'onAbort' Example
<head> <script language="JavaScript"> function function1() { alert("The loading action has been aborted\nTry again later") } </script> </head> <body> <img src="http://www.java2s.com/style/logo.png" onabort="function1()"> </body>