JavaScript Reference/Event Handlers Reference/onAbort

Материал из Web эксперт
Перейти к: навигация, поиск

"onAbort" Example

   <source lang="javascript">
   

<head> <script language="JavaScript">

  function function1() {
     alert("The loading action has been aborted\nTry later") 
  } 

</script> </head> <body> <img src="http://www.wbex.ru/style/logo.png" onabort="function1()"> </body>


     </source>
   
  


"onAbort" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<img> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"onAbort" Properties

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |ctrlLeft returnValue | | |shiftLeft srcElement | | |type | +----------------+--------------------------------------------------------------+

     </source>
   
  


"onAbort" Syntax and Note

   <source lang="javascript">

Note:

Fires when the user aborts the download of an image. To trigger this event you must do one of the following:

  1)click the browser"s stop button, 
  2)navigate to another page, or 
  3)click another link on the page.
     
     </source>