JavaScript Reference/Event Handlers Reference/onDblClick

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

"onDblClick" Example

   <source lang="javascript">
   

<HTML> <body bottommargin=150 ondblclick="alert("double clicked!")">

Double-click anywhere in the page.

</body> </HTML>


     </source>
   
  


"onDblClick" is applied to

   <source lang="javascript">

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

| |
<body> |

| |<button> |

| |
|

| | <custom> | | |

| | | <dir> |

| |
|

| |document

| | | <embed> | | |<fieldset> | | |<form> <frame> |

| |<hn>
|

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

| |<legend>
  • | | |<listing> <map> | | |<marquee> <menu> | | |<nobr> <noframes> | | |<noscript> <object> | | |
      <optgroup> | | |<option>

      | | |

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

        "onDblClick" Properties

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

        </source>



        "onDblClick" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the user double-clicks an element.


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |