views:

77

answers:

1

On nydailynews.com when you copy and paste any text from the site, a snippet of text is appended.

Read more: http://www.nydailynews.com/#ixzz0aN123abc

How do they achieve this?

I have searched all of the external JavaScript files (jquery) and can't seem to find anything that corresponds. Is this something that could be done in simple css?

+3  A: 

If you use EventBug in Firefox, you'll see that a copy event fires. The JS on the page is listening for this event and changing the clipboard contents. There are so many files loaded by that page it's hard to find the source code, though.

Annie
okie I'm dumb, http://www.tynt.com/ is the service it is using, will have to see if it's something i can't replicate. I thank you for the lead cheers.
John