code geass
code geass

Reputation: 109

Why Microsoft OneNote can show a link to the contents are copied from?

When I copied some good information online and pasted them on Microsoft OneNote, it can tell that

Pasted from [website_address]

I have done some search, but hard to find how they did this. How to add this feature to a software?

Upvotes: 5

Views: 353

Answers (2)

Raymond Chen
Raymond Chen

Reputation: 45172

According to the HTML clipboard format, there is an optional SourceURL property in the description section of the HTML clipboard data. You can also extract it from the BASE element in the HTML fragment.

Upvotes: 8

Brian
Brian

Reputation: 7299

Sometimes the website / web-page itself has javascript code that appends that text to anything copied from it. If this is the case you will see it when pasting into even notepad.exe

The main provider of such code is tynt.com and a lot of people find it annoying.

Upvotes: 2

Related Questions