document
has the execCommand
function, in it there is copy
property:
But I want to copy a special text, how can I realize it?
Such as:
var text = "abc123"
document.execCommand('copy', xxx) // or whatever to copy the text to the clipboard.
document
has the execCommand
function, in it there is copy
property:
But I want to copy a special text, how can I realize it?
Such as:
var text = "abc123"
document.execCommand('copy', xxx) // or whatever to copy the text to the clipboard.