The modern way Using the Async Clipboard API To read text from the user's clipboard programmatically, for example, after a button click, you can use the read Text() method of the Async Clipboard API.