Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Internet.commerce

Partner With Us
Cell Phones
GPS
Promotional Pens
Logo Design
Online Education
Compare Prices
Laptops
Desktop Computers
KVM Switches
Home Improvement
Logo Design
Prepaid Phone Card
Online Education
Online Shopping

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

3. From: Jon
Delete Cookie
02/18/2008 09:20:01

Hi.

I am using this script to let visitors set their location on a map and it will then redirect them to the page for their region everytime they visit.

But, is there a way i can make it so they can delete the cookie?

Thanks!

4. From: Lee (Admin)
06/26/2008 11:00:20

You'll need to post your question over on the forums.

1. From: peter
help editing Script
12/18/2007 11:55:33

help editing Script

wich bit of the script do i need to edit i can not find it

2. From: Lee Underwood (Admin)
01/29/2008 11:50:51

Due to the limitations of these comments, you will need to submit your question to the JavaScript Forum for further help.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.