Created
March 5, 2021 06:20
-
-
Save sabesansathananthan/9c2e37305bf30212856097671a5164f8 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
document.body.addEventListener( | |
'click', | |
async (e) => { | |
await navigator.clipboard.writeText('Sabesan') | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment