RonAckerman
ISP
I have a javascript that sets a cookie to redirect the user to a specific page which works just fine. However now I need it to redirect if the cookie is not set and stay on the page if the cookie is set. Here is the portion of the script that does the redirect. Basically I want to redirect back to the index.htm page if the cookie isn't set. Any ideas?
function get() {
email = Get_Cookie("name"
;
if (name != null) {
window.location.href = 'page2.htm';
}
function get() {
email = Get_Cookie("name"
if (name != null) {
window.location.href = 'page2.htm';
}