+ 2

What is the code to create a copy paste buttons with execCommand?

27th Feb 2018, 8:07 PM
Rachid AIT-ADRART
Rachid AIT-ADRART - avatar
3 Antworten
+ 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>
27th Feb 2018, 8:18 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
your welcome😊
27th Feb 2018, 8:23 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
thank u
27th Feb 2018, 8:22 PM
Rachid AIT-ADRART
Rachid AIT-ADRART - avatar