Click to See Complete Forum and Search --> : link instead of form


nemex
12-06-2002, 10:17 PM
I am using this cookie redirect script:
http://javascript.internet.com/cookies/cookie-redirect.html

But instead of utilizing a form to select, how can I use a link? For example, one of sample options is 'Cat' and links to 'cat.html' page. I want to, instead, create a link that links to that page and at the same time records the user's option of choosing that page so when he returns next time, he will be brought back automatically at 'cat.html'.

I assumed that copying the event handler "onClick..." in the "<a href..." would work, but it didnt. Is it possible? Thanks!!

Zach Elfers
12-06-2002, 10:39 PM
<span onClick="SetCookie('animal', this.name, exp);">Cat</span> That should work. I don't know why the link doesn't work though. Maybe also <a onClick="...