JavaScript Source Code 3000: User Details: Must Visit From....
Must Visit From....
If other sites links directly the sub-pages of your site or if previous required pages are being skipped, you can now require your visitors to come from a certain page! Those that did not come from the required page are alerted then send back to the required previous page. Clever!
[ You must come to this page from index.html ]
JavaScript Source Code 3000: User Details: Must Visit From.... Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
<!-- ONE STEP TO INSTALL MUST VISIT FROM....:
1. Copy the coding into the HEAD of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<! > <! >
<!-- Begin var requiredfrom = "index.html"; // required prev. page if (document.referrer.indexOf(requiredfrom) == -1) { alert("You must come to this page from " + requiredfrom); window.location=requiredfrom; } // End --> </script>