你的代码问题不少..<script>
function switch1()
{
if(window.i=="1"){
window.open("findpwd_3_tomobile.htm","发送密码至手机","");
}
else{
window.open("toEmai.htm","发送密码至邮箱","")
}
}
document.onclick=function()
{
if(event.srcElement.checked)
window.i=event.srcElement.value;
}
</script>
<form name="fomsendtype" onsubmit="switch1()"><input type="radio" name="sendtype" value="1">
发送到我注册的手机上 </td>
<td align=middle class=itemname height="12"> <div align="center"> </div></td>
</tr>
<tr>
<td align=middle class=itemname width="160" height="12"><input type="radio" name="sendtype" value="2">
发送到我注册的信箱中 </td>
<input type="submit">
function switch1()
{
if(window.i=="1"){
window.open("findpwd_3_tomobile.htm","发送密码至手机","");
}
else{
window.open("toEmai.htm","发送密码至邮箱","")
}
}
document.onclick=function()
{
if(event.srcElement.checked)
window.i=event.srcElement.value;
}
</script>
<form name="fomsendtype" onsubmit="switch1()"><input type="radio" name="sendtype" value="1">
发送到我注册的手机上 </td>
<td align=middle class=itemname height="12"> <div align="center"> </div></td>
</tr>
<tr>
<td align=middle class=itemname width="160" height="12"><input type="radio" name="sendtype" value="2">
发送到我注册的信箱中 </td>
<input type="submit">
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货