peterinwa
02-25-2003, 08:31 PM
This works fine:
// Function to save cookie and jump to note page
function noteJump(){
saveCookie1y("noteCookie",0,X1y);
location.href='note.html';
}
But I'm jumping from a frames page to an non-frames page and it's creating a problem. Here's what I need to do but the syntax is illegal. Just the last line is different:
// Function to save cookie and jump to note page
function noteJump(){
saveCookie1y("noteCookie",0,X1y);
location.href='note.html' target='_top';
}
I also tried:
location.href('note.html' target='_top');
My !#*&% books are always written for people that have programming training. I just wish they gave examples of actual coding because it's always a ; or : or something like that that hangs me up.
Thanks!
P.S.
Perhaps there is another way to do this? Click on a link and have a cookie written before jumping to the link?
// Function to save cookie and jump to note page
function noteJump(){
saveCookie1y("noteCookie",0,X1y);
location.href='note.html';
}
But I'm jumping from a frames page to an non-frames page and it's creating a problem. Here's what I need to do but the syntax is illegal. Just the last line is different:
// Function to save cookie and jump to note page
function noteJump(){
saveCookie1y("noteCookie",0,X1y);
location.href='note.html' target='_top';
}
I also tried:
location.href('note.html' target='_top');
My !#*&% books are always written for people that have programming training. I just wish they gave examples of actual coding because it's always a ; or : or something like that that hangs me up.
Thanks!
P.S.
Perhaps there is another way to do this? Click on a link and have a cookie written before jumping to the link?