JavaScript Reference/Event Handlers Reference/onBeforeDeactivate

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

"onBeforeDeactivate" Example

   <source lang="javascript">
   

<html> <body>

Press tab to bring the following link into focus.

 <a id="myL" 
    href="http://www.wbex.ru/" 
    target=_blank
    onbeforedeactivate="alert("losing focus")">
    wbex.ru
 </a>

<html>


     </source>
   
  


"onBeforeDeactivate" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | | |

| |
<body> |

| |<button> |

| |
|

| |<custom>

| | | <dir> |

| |
|

| |document

| | | <embed> | | |<fieldset> | | |<form> <frame> | | |<frameset> <hn> |

| |
|

| |<iframe> <img> | | |<input type="button"> <inputtype="checkbox"> | | |<input type="file"> <input type="hidden"> | | |<input type="image"> <input type="password"> | | |<input type="radio"> <input type="reset"> | | |<inputtype="submit"> <input type="text"> | | | <isindex> | | | <label> |

| |<legend>
  • | | |<listing> <marquee> | | |<menu> <object> | | |

      | | |

                                                            |
      |                |                                                    |
      |                |                                                     |
      |                |<select>                                               |
      |                |                                                |
      |                |                                                 |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                             
        | | | window | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "onBeforeDeactivate" Properties

        <source lang="javascript"> +----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |cancelBubble ctrlLeft | | |offsetX offsetY | | |returnValue screenX | | |screenY shiftLeft | | |srcElement toElement | | |type x | | |y | +----------------+--------------------------------------------------------------+

        </source>



        "onBeforeDeactivate" Syntax and Note

        <source lang="javascript"> Note:

        This event fires before the current active object loses focus.


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |