JavaScript Reference/Event Handlers Reference/onBeforeEditFocus

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

"onBeforeEditFocus" Example

   <source lang="javascript">
   

<html> <body>

Click in this text and type some text.

</body> </html>


     </source>
   
  


"onBeforeEditFocus" is applied to

   <source lang="javascript">

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

| |
<body> | | |<button>
|

| | | | |<custom>

| | |defaults | | | <dir> |

| |
|

| |document

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

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

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

        "onBeforeEditFocus" Properties

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

        </source>



        "onBeforeEditFocus" Syntax and Note

        <source lang="javascript"> Note:

        This event fires before an element enters edit mode. To enter edit mode, you must set its contenteditable attribute value to true.


        </source>

      | | |<textarea>