JavaScript Reference/Event Handlers Reference/onBeforeCopy

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

"onBeforeCopy" Example

   <source lang="javascript">
   

<html> <body>

Copy this text to the system clipboard by pressing Ctrl+C.

</body> </html>


     </source>
   
  


"onBeforeCopy" is applied to

   <source lang="javascript">

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

| |
| | |
|

| | <custom> | | |

|

| |<dir>
| | |
| | | <fieldset> | | |<form> <hn> | | | <img> | | |<label> <legend> | | |
  • <listing> | | |<menu> <nobr> | | |

      | | |

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

        "onBeforeCopy" Properties

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

        </source>



        "onBeforeCopy" Syntax and Note

        <source lang="javascript"> Note:

        This event fires before the selection in the document is copied to the clipboard.


        </source>