Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<input type="text" value="Hello World" id="MyInput">
<button onclick="CopyToClipboard()">Copy</button><br>
<input type="text" placeholder="here (ctrl+v)">
<script>
function CopyToClipboard() {
// doesn't work in IE8 and earlier
var copyText = document.getElementById("MyInput");
copyText.select();
document.execCommand("copy");
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507