Forum Moderators: open
Im new to javascript and learning. Can any kind soul please help me fix this script to work with Firefox (its already working with IE).
Everytime I click on the submit button to submit a form I end up at the very same page again when browsing with FireFox
Thanks in advanced.
Andy
<script language="JavaScript">
function pay(){
with (document.getElementById('ezm')){
if(prod1.checked == true && extra.checked == true){
window.location.href = "page1.html";
}
else if(prod1.checked == true){
window.location.href = "page2.html";
}
else if(prod2.checked == true && extra.checked == true){
window.location.href = "page3.html";
}
else if(prod2.checked == true){
window.location.href = "page4.html";
}
else if(prod3.checked == true && extra.checked == true){
window.location.href = "page5.html";
}
else if(prod3.checked == true){
window.location.href = "page6.html";
}
//window.location.href="";
}
}
</script>
Kaled.