document.referrer

Click on the button to display the referrer link of this document.

Note: Click on ctrl + u to view source code of this page.

Try the following

Copy the URL of this document.

Open a new tab in your browser and paste it inside 'the address bar' and hit ENTER.

Now Check the result by clicking on the button.