JavaScript Reference/Javascript Objects/clipboardData
Содержание
"clipboardData" Example
<source lang="javascript">
<html> <body> <button onclick="window.clipboardData.setData("text", "This is sample text");"> Copy sample text to clipboard </button> <button onclick="alert(window.clipboardData.getData("text"));"> Display data copied to clipboard </button> </body> </html>
</source>
"clipboardData" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+
</source>
"clipboardData" JavaScript Methods
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | JavaScript |clearData getData | | Methods |setData | +----------------+--------------------------------------------------------------+
</source>
"clipboardData" Syntax and Note
<source lang="javascript">
Note: Transfer data to and from the clipboard. Its methods, clearData(), getData(), and setData(), perform the actions cut, copy, and paste, respectively.
Syntax:
window.clipboardData.memberName
</source>