You can only do it in IE, but "copying to clipboard" is actually a system-command. Thus, because IE is so tightly bundled with Windows, it can be done -and that's the great weakness as well.
Have a look at the
IE code and then check out the
commandID "copy". You may want to have a look at
textRange as well - since it's necessary to do the whole shebang.
The following restrictions however apply:
- it will only work in IE4+
- it will only work under Windows
- it is a HUGE
security risk
- it is buggy
Neither of which should really come as a surprise.
My personal piece of advise - don't do it.