Created
March 16, 2022 18:25
-
-
Save bran921007/3db5c058322258af5e71d60cf87c2032 to your computer and use it in GitHub Desktop.
๐๐ผ๐ฝ๐ ๐๐ผ ๐๐น๐ถ๐ฝ๐ฏ๐ผ๐ฎ๐ฟ๐ฑ ๐ฏ๐๐๐๐ผ๐ป
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 copyBtn = document.getElementById('copy-btn'); | |
const search = document.getElementById('search-box'); | |
copyBtn.addEventListener('click', () => { | |
navigator.clipboard.writeText(search.value); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment