Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Copy (CTRL + C) com JavaScript
<!DOCTYPE html>
<input id="text" />
<button id="copy">Copy</button>
<script type="text/javascript">
const textInput = document.getElementById('text');
const copyButton = document.getElementById('copy');
copyButton.addEventListener('click', ()=> {;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment