JavaScript Reference/Event Handlers Reference/onDeactivate

Материал из Web эксперт
Версия от 08:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"onDeactivate" Example

    
<HTML>
<head>
</head>
<body>
<p class="explanations">Press tab to bring the following link in and out of focus.</p>
<a tabindex="3" 
   id="myL" 
   href="http://www.wbex.ru/" 
   target=_blank ondeactivate="alert("The link has been deactivated")">
   www.wbex.ru
</a>
</body>
</HTML>



"onDeactivate" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <acronym>                     |
|                |<address>                       <applet>                      |
|                |<area>                          <b>                           |
|                |<bdo>                           <big>                         |
|                |<blockquote>                    <body>                        |
|                |<button>                        <caption>                     |
|                |<center>                        <cite>                        |
|                |<custom>                        <dd>                          |
|                |<dfn>                           <dir>                         |
|                |<div>                           <dl>                          |
|                |document                        <dt>                          |
|                |<em>                            <embed>                       |
|                |<fieldset>                      <font>                        |
|                |<form>                          <frame>                       |
|                |<frameset>                      <hn>                          |
|                |<hr>                            <i>                           |
|                |<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">           |
|                |<ins>                           <isindex>                     |
|                |<kbd>                           <label>                       |
|                |<legend>                        <li>                          |
|                |<listing>                       <marquee>                     |
|                |<menu>                          <object>                      |
|                |<ol>                            <p>                           |
|                |<pre>                           <q>                           |
|                |<rt>                            <ruby>                        |
|                |<s>                             <samp>                        |
|                |<select>                        <small>                       |
|                |<span>                          <strike>                      |
|                |<strong>                        <sub>                         |
|                |<sup>                           <table>                       |
|                |<tbody>                         <td>                          |
|                |<textarea>                      <tfoot>                       |
|                |<th>                            <thead>                       |
|                |<tr>                            <tt>                          |
|                |<u>                             <ul>                          |
|                |<var>                           window                        |
|                |<xmp>                                                         |
+----------------+--------------------------------------------------------------+



"onDeactivate" Properties

+----------------+--------------------------------------------------------------+
| Properties     |altKey                          altLeft                       |
|                |ctrlLeft                        offsetX                       |
|                |offsetY                         qualifier                     |
|                |returnValue                     screenX                       |
|                |screenY                         shiftLeft                     |
|                |srcElement                      toElement                     |
|                |type                            x                             |
|                |y                                                             |
+----------------+--------------------------------------------------------------+



"onDeactivate" Syntax and Note

Note:
    
This event fires when the current object loses focus.