Mega Code Archive

 
Categories / JavaScript DHTML / Development
 

Checking document referrer

<HTML> <HEAD> <TITLE>document.referrer Property 2</TITLE> </HEAD> <BODY><H1> <SCRIPT LANGUAGE="JavaScript"> if(document.referrer.length > 0 && document.referrer.indexOf("http://www.rntsoft.com") != -1){     document.write("How is the site?") } else {     document.write("Hello, and thank you for stopping by.") } </SCRIPT> </H1></BODY> </HTML>