'clipboardData' Example : clipboardData « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- Javascript Objects
- clipboardData
'clipboardData' Example
<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>
Related examples in the same category