Take a look here, this piece of code provides `copy("text");` in JavaScript, and uses only one SWF (I think). sites.google.com/site/yangshuai10/jquerycopyplugin
Edit forehead slap. The last time I had to write a script to copy to clipboard was several years ago and I was targeting the script for IE on a company intranet. I stand humbly (and foolishly) corrected.
It could potentially be a huge security risk, which is why it's had to be sandboxed into plugins like flash.
Why is copying data into the clipboard a security risk?
> which is why it's had to be sandboxed into plugins like flash.
But it's already in a sandbox (the browser). Why do we need a sandbox inside the sandbox?
I really don't understand what the huge deal is with this. It's almost harder to get some plain text onto the clipboard than it is to get the user to run a .exe.