I'm trying to either redirect users to a new page or giving them an
alert message depending on the value of a cookie. I'm very new to
Javascript and would appreciate any advice on making the following
statement work (this is more a wish list of what I would like it to do
than workable code!)
function CookieRedirect () {
var favorite = GetCookie('numb er');
if (favorite <= "300") {
alert('incorrec t');
else
("<a href="page2.htm >")
}
Thanks for any help.
Laura
alert message depending on the value of a cookie. I'm very new to
Javascript and would appreciate any advice on making the following
statement work (this is more a wish list of what I would like it to do
than workable code!)
function CookieRedirect () {
var favorite = GetCookie('numb er');
if (favorite <= "300") {
alert('incorrec t');
else
("<a href="page2.htm >")
}
Thanks for any help.
Laura
Comment