JavaScript Reference/Event Handlers Reference/onCopy

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

"onCopy" Example

   <source lang="javascript">
   

<html> <body>

Copy this text to the system clipboard.

</body> </html>


     </source>
   
  


"onCopy" is applied to

   <source lang="javascript">

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

| |
| | |
|

| | <custom> | | |

|

| |<dir>
| | |
| | | <fieldset> | | |<form> <hn> | | |
|

| |<img> <legend> |

| |
  • <listing> | | |<menu> <nobr> | | |

      | | |

                                                            |
      |                |                                                 |
      |                |                                                |
      |                |                                                 |
      |                |                           <td>                          |
      |                |<th>                            <tr>                          |
      |                |                                                       |
      |                |
        | +----------------+--------------------------------------------------------------+ </source>

        "onCopy" Properties

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

        </source>



        "onCopy" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the user copies the selection to the clipboard.


        </source>