I have a form which gives users 4 choices, based on which radio button they have selected i want to open a page in the same window. but I am having trouble getting this to work. Currently, I can only open new windows and cannot open the pages in the same window the way I want to. here is my code:
if(var=="xxx"){
window.open('xxx.html');
} else if(paychoice=="yyy") {
window.open('yyy.html');
} else if(paychoice=="zzz"){
window.open(zzz.html');
} else if(paychoice=="aaa") {
window.open(aaa.html');
} else {}
}
can anyone help me?
if(var=="xxx"){
window.open('xxx.html');
} else if(paychoice=="yyy") {
window.open('yyy.html');
} else if(paychoice=="zzz"){
window.open(zzz.html');
} else if(paychoice=="aaa") {
window.open(aaa.html');
} else {}
}
can anyone help me?