开发者

Copy content from webpage - and paste content + link

开发者 https://www.devze.com 2023-01-29 18:45 出处:网络
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 pag开发者_如何学运维

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 pag开发者_如何学运维e you copied from.

How did they do this? Ideas?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消