JavaScript Reference/Event Handlers Reference/onBeforeCopy — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
Содержание
"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> | | | |
| || | | | | |
| |<dir><custom> | | |
| | | |
- | | | <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>