Skip to content

Commit

Permalink
Update server.html
Browse files Browse the repository at this point in the history
  • Loading branch information
App004 authored Oct 25, 2024
1 parent d7cc92a commit 8399e33
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<input type="text" value="1234" id="myInput">
<button onclick="copy()">Copy text</button>


<script>
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
alert("Copied the text: " + copyText.value);
}
</script>
</body>
</html>

0 comments on commit 8399e33

Please sign in to comment.