Semi-interesting trivia. Trello lets you copy the URL of a card by just hovering it and hitting Ctrl-C. They do this by intercepting Ctrl to change the current selection to an invisible input field...
If you just want to inject things into a copy-paste, you don't even need javascript: http://www.lattyware.co.uk/examples/injecting-text-into-clip...
This method is totally impossible to spot, works for Ctrl-C as well as right-click copy, and is fairly widely supported.
0 - http://tynt.com/
1 - http://joeba.in/joebain/Javascript%20Copy%20Hijack