Referrer Location

[Total: 0    Average: 0/5]

document.referrer:

Body Code:

<script type="text/javascript">
if (document.referrer == "" || 
    document.referrer.indexOf("js-examples.com") == -1)
  document.write('Last URL was not in JS-Examples.<BR>')
else
  document.write('Last URL was from another site with in JS-Examples.<BR>')
if (document.referrer&&document.referrer!="")
  document.write('Last URL was '+document.referrer+'<BR></div>')
else
  document.write('Last URL was NULL<BR>')
</script>

Times Viewed: 7

Leave a Reply

Your email address will not be published. Required fields are marked *