Fmylife javascript copy-paste into link

Posted by davezor on Stack Overflow See other posts from Stack Overflow or by davezor
Published on 2010-03-13T08:51:32Z Indexed on 2010/03/13 8:55 UTC
Read the original article Hit count: 670

Filed under:
|
|

Fmylife.com has a nifty feature that when you copy the text from a post, it actually copies a LINK (html) so that when you paste it into your email/facebook/instant messenger/twitter/whatever it automatically will link to the post, giving them more traffic and more page views and more ad revenue, etc.

I looked into their javascript files but can't seem to find how they do it. How would one go about copying this behavior?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about copy