On Chrome only document.execCommand(\'copy\') returns true but does not copy the text, it clears the clipboard.
document.execCommand(\'copy\')
I can\'t find anyone who\'s had the same pro
I have found that you can't dynamically insert a input field, insert some text, and then copy it to the clipboard. I was able to copy text from an existing input tag.