+ 6
How is document.execCommand used?
document.execCommand executes a command on an editable text. How is it used ? Any example ? How is it used with commands "copy", "selectAll", "cut" and "paste"
2 Respuestas
+ 1
For "copy to clipboard" feature, for example.
It needs to be paired with textBoxElement.select()
Examples :
My source:
https://code.sololearn.com/WFdpkp5BiOzX/?ref=app
My application :
https://code.sololearn.com/WMSROPdKNoCl/?ref=app
+ 7
Thanks Gordon !!