Good day! There was such a question. I heard somewhere that in JavaScript there is supposedly an opportunity to insert the text on a page to determine where it was copied from (if it was copied from a tab in the same browser). That is, let's say I have a page with url http://first.ru open, I copy some text there, then programmatically using JS I insert it into a textbox on the page with url http://second.ru , and allegedly when inserting this text I can determine that I copied it from the page with url http://first.ru . Is this possible, or am I mistaken? And if so, how? Thank you in advance!

  • This is impossible only if you do not leave this information there when handling ClipboardEvent events directly during the copying itself. - Alex Krass
  • one
    I doubt that even the OS remembers the source. Not to mention that JS gets this private information. - user207618 pm
  • In fact, I don’t think it is so possible. At a minimum, information about the source is present in the clipboard. You can check this, if you copy the text from the browser and then paste it into Microsoft OneNote , it will show the source (url of the page). - Stepan Kasyanenko

0