Cookie Redirect

Ronnie Moore May 11, 2000

General

Redirects the visitor to different pages based on the value of a stored cookie. If no cookie is found, the available items are displayed for the user to pick from, which sets a cookie for their next visit.


Please choose your Favorite Pet:
Cat
Dog
Gerbil
Gopher

(Choose an animal then reload the page to see how the redirect works.)

Notes

Source Code

Paste this source code into the designated areas.

External file

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


Head

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


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)