按钮不在表单中,怎样被按后让表单提交? <form name=form1><input name=a type=submit></form><input onclick="document.form1.a.click()"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Object doesn't support this property or method.出现了这样的错误。<html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title=""><--body{font-size: 9pt;}td{font-size: 9pt}font{font-size:9pt}input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}select{font-size: 9pt}button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}a:link{ color: #FFFFFF; text-decoration: none}a:visited{ color: #FFFFFF; text-decoration: none}a:hover{ color: #FFFFFF; text-decoration: underline}--></style></head><body bgcolor="#FFFFFF" text="#000000"><table width="600" border="2" cellspacing="0" cellpadding="0" align="center"> <tr> <td bgcolor="#999999"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td><font color="#FFFFFF">E2ROM信息</font></td> <td> <div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#CCCCCC"> <form name="setform" method="post" action="/cgi-bin/changemk"> <input type="hidden" name="radiono" value="0"> </form> <table width="70%" border="0" align="center" cellpadding="9" cellspacing="9"> <tr> <td width="25%"> <table width="100%" border="1" cellspacing="1" cellpadding="2"> <tr> <td>电口1、2状态</td> </tr> <tr> <td> <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1"> <tr> <td>DUP</td> <td>SPD</td> </tr> <tr> <td> <span id="tb"> <table width="100%" border="0" cellspacing="1" cellpadding="7" > <tr> <td> <input type="radio" name="r1" value="0" onmouseup='return mychange(1)'> FULL</td> </tr> <tr> <td> <input type="radio" name="r1" value="1" onmouseup='return mychange(2)'> HALF</td> </tr> </table> </span> </td> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td> <input type="radio" name="r2" value="0" onmouseup='return mychange(3)'> AUTO</td> </tr> <tr> <td> <input type="radio" name="r2" value="1" onmouseup='return mychange(4)'> 100M</td> </tr> <tr> <td> <input type="radio" name="r2" value="2" onmouseup='return mychange(5)'> 10M</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width="25%"> <table width="100%" border="1" cellspacing="1" cellpadding="2"> <tr> <td>光口1、2状态</td> </tr> <tr> <td><span id="guangkou"> <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1"> <tr> <td>DUP</td> <td>SPD</td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="7"> <tr> <td> <input type="radio" checked> FULL</td> </tr> <tr> <td> <input type="radio"> HALF</td> </tr> </table> </td> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td> <input type="radio"> AUTO</td> </tr> <tr> <td> <input type="radio" checked> 100M</td> </tr> <tr> <td> <input type="radio"> 10M</td> </tr> </table> </td> </tr> </table> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr></table><script language="JavaScript">document.all.r1[0].click();function mychange(myvalue){ if(confirm('确定要更改设置吗?')){ document.setform.Submit(); return true; } else{ return false; }}</script></body></html> function mychange(myvalue){ if(confirm('确定要更改设置吗?')){ document.setform.radiono=myvalue document.setform.Submit(); }}调用时:onclick='mychange(1)' <html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title=""><--body{font-size: 9pt;}td{font-size: 9pt}font{font-size:9pt}input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}select{font-size: 9pt}button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}a:link{ color: #FFFFFF; text-decoration: none}a:visited{ color: #FFFFFF; text-decoration: none}a:hover{ color: #FFFFFF; text-decoration: underline}--></style></head><body bgcolor="#FFFFFF" text="#000000"><table width="600" border="2" cellspacing="0" cellpadding="0" align="center"> <tr> <td bgcolor="#999999"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td><font color="#FFFFFF">E2ROM信息</font></td> <td> <div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#CCCCCC"> <form name="setform" method="post" action="/cgi-bin/changemk"> <input type="hidden" name="radiono" value="0"> </form> <table width="70%" border="0" align="center" cellpadding="9" cellspacing="9"> <tr> <td width="25%"> <table width="100%" border="1" cellspacing="1" cellpadding="2"> <tr> <td>电口1、2状态</td> </tr> <tr> <td> <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1"> <tr> <td>DUP</td> <td>SPD</td> </tr> <tr> <td> <span id="tb"> <table width="100%" border="0" cellspacing="1" cellpadding="7" > <tr> <td> <input type="radio" name="r1" value="0" onmouseup='return mychange(1)'> FULL</td> </tr> <tr> <td> <input type="radio" name="r1" value="1" onmouseup='return mychange(2)'> HALF</td> </tr> </table> </span> </td> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td> <input type="radio" name="r2" value="0" onmouseup='return mychange(3)'> AUTO</td> </tr> <tr> <td> <input type="radio" name="r2" value="1" onmouseup='return mychange(4)'> 100M</td> </tr> <tr> <td> <input type="radio" name="r2" value="2" onmouseup='return mychange(5)'> 10M</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> <td width="25%"> <table width="100%" border="1" cellspacing="1" cellpadding="2"> <tr> <td>光口1、2状态</td> </tr> <tr> <td><span id="guangkou"> <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1"> <tr> <td>DUP</td> <td>SPD</td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="7"> <tr> <td> <input type="radio" checked> FULL</td> </tr> <tr> <td> <input type="radio"> HALF</td> </tr> </table> </td> <td> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr> <td> <input type="radio"> AUTO</td> </tr> <tr> <td> <input type="radio" checked> 100M</td> </tr> <tr> <td> <input type="radio"> 10M</td> </tr> </table> </td> </tr> </table> </span> </td> </tr> </table> </td> </tr> </table> </td> </tr></table><script language="JavaScript">document.all.r1[0].click();function mychange(myvalue){ if(confirm('确定要更改设置吗?')){ document.setform.submit(); } else{ return false; }}</script></body></html> document.form1.submit(); // form1为form 的 name document.forms[i].submit();就可以了 求大神帮忙实现一个简单的JS 文本框中只能输入数字或带小数点后两位! div注册鼠标事件 疑问 如何在imageButton中弹出thickbox? 搞好再追加倍的分数,一个漂亮滑动门的实现 帮忙简化一下这几句代码 请问各位这个正则表达式错在哪里? 代码校正。。。。帮个小忙 用JS如何得到服务器的IP? 在showModelDialog打开的对话框中,form的target问题 提问,为学习 以网页的形式做办公自动化,给点意见?
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title="">
<--
body{font-size: 9pt;}
td{font-size: 9pt}
font{font-size:9pt}
input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}
select{font-size: 9pt}
button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}
a:link{ color: #FFFFFF; text-decoration: none}
a:visited{ color: #FFFFFF; text-decoration: none}
a:hover{ color: #FFFFFF; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="600" border="2" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#999999">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><font color="#FFFFFF">E2ROM信息</font></td>
<td>
<div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
<form name="setform" method="post" action="/cgi-bin/changemk">
<input type="hidden" name="radiono" value="0">
</form>
<table width="70%" border="0" align="center" cellpadding="9" cellspacing="9">
<tr>
<td width="25%">
<table width="100%" border="1" cellspacing="1" cellpadding="2">
<tr>
<td>电口1、2状态</td>
</tr>
<tr>
<td>
<table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
<tr>
<td>DUP</td>
<td>SPD</td>
</tr>
<tr>
<td> <span id="tb">
<table width="100%" border="0" cellspacing="1" cellpadding="7" >
<tr>
<td>
<input type="radio" name="r1" value="0" onmouseup='return mychange(1)'>
FULL</td>
</tr>
<tr>
<td>
<input type="radio" name="r1" value="1" onmouseup='return mychange(2)'>
HALF</td>
</tr>
</table>
</span> </td>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td>
<input type="radio" name="r2" value="0" onmouseup='return mychange(3)'>
AUTO</td>
</tr>
<tr>
<td>
<input type="radio" name="r2" value="1" onmouseup='return mychange(4)'>
100M</td>
</tr>
<tr>
<td>
<input type="radio" name="r2" value="2" onmouseup='return mychange(5)'>
10M</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="25%">
<table width="100%" border="1" cellspacing="1" cellpadding="2">
<tr>
<td>光口1、2状态</td>
</tr>
<tr>
<td><span id="guangkou">
<table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
<tr>
<td>DUP</td>
<td>SPD</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="7">
<tr>
<td>
<input type="radio" checked>
FULL</td>
</tr>
<tr>
<td>
<input type="radio">
HALF</td>
</tr>
</table>
</td>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td>
<input type="radio">
AUTO</td>
</tr>
<tr>
<td>
<input type="radio" checked>
100M</td>
</tr>
<tr>
<td>
<input type="radio">
10M</td>
</tr>
</table>
</td>
</tr>
</table>
</span> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
document.all.r1[0].click();
function mychange(myvalue){
if(confirm('确定要更改设置吗?')){
document.setform.Submit();
return true;
}
else{
return false;
}
}
</script>
</body>
</html>
if(confirm('确定要更改设置吗?')){
document.setform.radiono=myvalue
document.setform.Submit();
}
}
调用时:
onclick='mychange(1)'
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title="">
<--
body{font-size: 9pt;}
td{font-size: 9pt}
font{font-size:9pt}
input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}
select{font-size: 9pt}
button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}
a:link{ color: #FFFFFF; text-decoration: none}
a:visited{ color: #FFFFFF; text-decoration: none}
a:hover{ color: #FFFFFF; text-decoration: underline}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="600" border="2" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#999999">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><font color="#FFFFFF">E2ROM信息</font></td>
<td>
<div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
<form name="setform" method="post" action="/cgi-bin/changemk">
<input type="hidden" name="radiono" value="0">
</form>
<table width="70%" border="0" align="center" cellpadding="9" cellspacing="9">
<tr>
<td width="25%">
<table width="100%" border="1" cellspacing="1" cellpadding="2">
<tr>
<td>电口1、2状态</td>
</tr>
<tr>
<td>
<table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
<tr>
<td>DUP</td>
<td>SPD</td>
</tr>
<tr>
<td> <span id="tb">
<table width="100%" border="0" cellspacing="1" cellpadding="7" >
<tr>
<td>
<input type="radio" name="r1" value="0" onmouseup='return mychange(1)'>
FULL</td>
</tr>
<tr>
<td>
<input type="radio" name="r1" value="1" onmouseup='return mychange(2)'>
HALF</td>
</tr>
</table>
</span> </td>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td>
<input type="radio" name="r2" value="0" onmouseup='return mychange(3)'>
AUTO</td>
</tr>
<tr>
<td>
<input type="radio" name="r2" value="1" onmouseup='return mychange(4)'>
100M</td>
</tr>
<tr>
<td>
<input type="radio" name="r2" value="2" onmouseup='return mychange(5)'>
10M</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="25%">
<table width="100%" border="1" cellspacing="1" cellpadding="2">
<tr>
<td>光口1、2状态</td>
</tr>
<tr>
<td><span id="guangkou">
<table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
<tr>
<td>DUP</td>
<td>SPD</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="7">
<tr>
<td>
<input type="radio" checked>
FULL</td>
</tr>
<tr>
<td>
<input type="radio">
HALF</td>
</tr>
</table>
</td>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td>
<input type="radio">
AUTO</td>
</tr>
<tr>
<td>
<input type="radio" checked>
100M</td>
</tr>
<tr>
<td>
<input type="radio">
10M</td>
</tr>
</table>
</td>
</tr>
</table>
</span> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language="JavaScript">
document.all.r1[0].click();
function mychange(myvalue){
if(confirm('确定要更改设置吗?')){
document.setform.submit();
}
else{
return false;
}
}
</script>
</body>
</html>