Home
Verify
About Us
Contact Us
Courses
_Introduction to Cybersecurity
_What is GitHub?
Home
HTML code to create a copy button to copy a field of text
HTML code to create a copy button to copy a field of text
<div id="textarea">I love you</div><br> <button id="copy">Copy</button> <script> document.getElementById("copy").onclick = function() { document.getElementById("textarea").select(); document.execCommand('copy'); }; </script>
Copy
Post a Comment
0 Comments
Table of Contents
Most Popular
Fundamentals of Computer > Computer Terms
January 29, 2023
Why India is called as Golden Bird in ancient times?
January 30, 2023
Principles and functions of Industrial Management
January 26, 2023
Contact form
0 Comments