Created
March 5, 2021 03:50
-
-
Save sabesansathananthan/8d6fdfa47933f28ff94ddd9ba8c7f72b to your computer and use it in GitHub Desktop.
Clipboard Operation in JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const inputElement = document.querySelector('#input'); | |
inputElement.select(); | |
document.execCommand('copy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment