<script>
function onRadioClick(radio) {
radio.form.action = radio.value;
}
function onFormSubmit(form) {
window.location = form.action;
return false;
}
</script>
<form name="input" action="#" method="get" onsubmit="window.open.return onFormSubmit(this)">
<label><input type="radio" name="destination" onclick="onRadioClick(this)" value="yes.html" />YES!</label><label><input type="radio" name="destination"
onclick="onRadioClick(this)" value="no.html"/>No</label>
<input type="submit" value="Submit">
I don’t understand why the “window.open” isn’t working. The submit button opens the link in the current tab. I got it to work right once and I thought it was this exact code, but I didn’t save my work and now I can’t get it to work again.
you can try this:
(or)this