Use Replace To Goto New Page

[Total: 0    Average: 0/5]

Check the referrer location – and if not the valid one send the user onto another web page.

Body Code:

<SCRIPT>
<!--

var from = document.referrer;
var here = "somespecificpage.html";


if (from.substring(0,here.length) != here)
document.location.replace("http://www.js-examples.com");


//-->
</SCRIPT>

Times Viewed: 4

Leave a Reply

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