<html>
<body>
<p>Click the button to display the referrer of this document.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = document.referrer;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_doc_referrer by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:28:19 GMT -->
</html>