Hi! I hade a very useful javascript to copy text into clipboard but it does no longer seem to work. It just copies the whole jscript into clipboard.
I think jscript is the only way without a plugin, right?
Sadly I'm not good at Jscript (yet). Does someone know why it does no longer work or how to fix it? Code below (it's 1 long line):
(it's in a function with a string as parameter for the text to copy)
"var myTextBox=document.createElement(""input"");document.body.appendChild(myTextBox);myTextBox.setAttribute(""id"",""myTextBox_id"");document.getElementById(""myTextBox_id"").value=""" & textToCopy & """;myTextBox.select();myTextBox.setSelectionRange(0,99999);document.execCommand(""copy"");document.body.removeChild(myTextBox);"