Cookie Redirect 2 | JavaScriptSource

Cookie Redirect 2

William Bontrager Jan 31, 2007


When a page has performed it's purpose, a cookie can be set to redirect the browser to a different page on subsequent visits. Easily implemented.

(Because it will redirect after one visit, the example is not shown on this site.)


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: cookieRedirect.js


Paste this code into the HEAD section of your HTML document.

Leave a Response

(1 comment)

Still testing on our development server but so far this script works great, thanks for your hard work and effort...

Richard W. Zidonis Jan 9, 2008