Suppose Stackoverflow wanted to make an easy "Copy link to this question" link. When you clicked this link on http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke, it would add this HTML to your clipboard:
<a href="http://stackoverflow.com/questions/234075">What is your best programmer joke?</a>
So when you pasted into Gmail or whatever, it would look like this: What is your best programmer joke?
What's the best way to accomplish this in a cross-browser fashion?