I have a problem with my extension. I want to paste data from the clipboard.
So far, I've got this:
function pasteAndGo()
{
document.execCommand('paste')
alert("Pasted")
}
The alert comes up, but nothing has been pasted.
I've got a feeling it's the document
part that needs changing, but I don't know what to do. Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…