+ 2
What is the code to create a copy paste buttons with execCommand?
3 Respostas
+ 5
<input type="text" style="color: #000000; background-color: ##eee"
id="field1" value="Copy me"> <input type="text"
style="color: #000000; background-color: #eee" id="field2">
<button style="background-color: #fff"
onclick="document.getElementById('field2').value = document.getElementById('field1').value">
Click to Copy Text</button>
</p>
+ 4
your welcome😊
+ 3
thank u