JavaScript DHTML/Event onMethod/onAbort
"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.wbex.ru/style/logo.png" onabort="function1()">
</body>