Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy content from webpage - and paste content + link

Tags:

html

css

Sports Illustrated cnn link

Copy some content on the above web page and paste it in a notepad, you will see in addition to what copied there is a also a Read more link of the web page you copied from.

How did they do this? Ideas?

like image 762
Broken Link Avatar asked Dec 08 '10 17:12

Broken Link


People also ask

How do you copy and paste content from a website?

Press and hold the left mouse button. Then, drag the mouse from the top-left to the bottom-right part of the section of text you want to copy. To copy the highlighted text, on your keyboard, press the keyboard shortcut Ctrl + C or right-click the highlighted text and click Copy.

How do I copy and paste a link to a hyperlink?

Select the text or picture that you want to display as a hyperlink. Press Ctrl+K. You can also right-click the text or picture and click Link on the shortcut menu. In the Insert Hyperlink box, type or paste your link in the Address box.

Can we copy content from one website to another?

In general, the answer is no. This means you are claiming credit for someone else's work and is called plagiarism. It's illegal. If you publish someone else's work without the appropriate licence or permission you are committing copyright piracy.


1 Answers

It uses JavaScript provided by Tynt.

It basically uses Javascript's onCopy event handler.

Information about onCopy:

  • https://developer.mozilla.org/en/DOM/element.oncopy

  • http://msdn.microsoft.com/en-us/library/ms536916(VS.85).aspx

Analysis of how Tynt works:

  • http://blog.nparashuram.com/2009/03/how-tynt-works-technical-details.html
like image 79
Adam Avatar answered Sep 30 '22 12:09

Adam