<script language="JavaScript">
function dothecheck()
{
if(document.getElementsByName("postvote")[0].checked)
{
if(!confirm("确定选1?")) return false;
}
else if(document.getElementsByName("postvote")[1].checked)
{
if(!confirm("确定选2?")) return false;
}
else
{
alert("还未选择");
return false;
}
window.location.href="4.asp"
}
</script>
<form action="5.asp" method="post" target="framename1" name="formface" >
<input type="radio" name="postvote" value="0" />1号
<input type="radio" name="postvote" value="1" />2号
<input type="submit" name="Submit" value="OK!" onclick="return dothecheck()">
</form>
function dothecheck()
{
if(document.getElementsByName("postvote")[0].checked)
{
if(!confirm("确定选1?")) return false;
}
else if(document.getElementsByName("postvote")[1].checked)
{
if(!confirm("确定选2?")) return false;
}
else
{
alert("还未选择");
return false;
}
window.location.href="4.asp"
}
</script>
<form action="5.asp" method="post" target="framename1" name="formface" >
<input type="radio" name="postvote" value="0" />1号
<input type="radio" name="postvote" value="1" />2号
<input type="submit" name="Submit" value="OK!" onclick="return dothecheck()">
</form>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货