JavaScript Reference/Event Handlers Reference/onBeforeCopy
Содержание
"onBeforeCopy" Example
<html>
<body>
<p onbeforecopy="alert("copied to the clipboard")">
Copy this text to the system clipboard by pressing Ctrl+C.
</p>
</body>
</html>
"onBeforeCopy" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <address> |
| |<area> <b> |
| |<bdo> <big> |
| |<blockquote> <caption> |
| |<center> <cite> |
| |<code> <custom> |
| |<dd> <dfn> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <fieldset> |
| |<form> <hn> |
| |<i> <img> |
| |<label> <legend> |
| |<li> <listing> |
| |<menu> <nobr> |
| |<ol> <p> |
| |<pre> <s> |
| |<samp> <small> |
| |<span> <strike> |
| |<strong> <sub> |
| |<sup> <td> |
| |<textarea> <th> |
| |<tr> <tt> |
| |<u> <ul> |
+----------------+--------------------------------------------------------------+
"onBeforeCopy" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |cancelBubble clientX |
| |clientY ctrlKey |
| |ctrlLeft dataTransfer |
| |offsetX offsetY |
| |returnValue screenX |
| |screenY shiftKey |
| |shiftLeft srcElement |
| |type x |
| |y |
+----------------+--------------------------------------------------------------+
"onBeforeCopy" Syntax and Note
Note:
This event fires before the selection in the document is copied to the clipboard.