Now you are going to know how to get the value from radio button and open a new page when option is clicked.For example you have a form with two option boxes.
Quote:<form name="redirect">
<input type="radio" name="choose" onchange="return call()">yahoo</input> <input type="radio" name="choose" onchange="return call()">google</input>
</form>
Now write the script in head section as follows
<script type="text/javascript">
function call()
{
for(var i=0;i<document.redirect.length;i++)
{
if(document.redirect.choose[i].checked)
{
role=document.redirect.choose[i].value;
}
}
if(role=="yahoo") { window.open('http://www.yahoo.com','_self');
}
else
{
window.open('http://www.google.com','_self');
}
return true;
}
</script>
Try it and ask questions if any doubt and do comment us.
Happy coding