简单问题,在线等,正确马上给分:判断一个复选框是否选中? if (this.checked == true)==>if (name1.checked == true) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是不行,对不起,刚才程序可能没写全:<html><head><title>输入区</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body onkeydown="KeyDown()" oncontextmenu="event.returnValue=false" leftmargin=5 topmargin=2 marginwidth=5 marginheight=2 bgcolor=eeeeee ><script language="Javascript"><!--function onscorll(){ if(document.submitform.name1.Checked==true){ alert('yes'); }else{ alert('no'); }}// --></script><form action="send" name=submitform target="temp" method="post" > <table width="100%" border="0" cellspacing="2" > <tr> <td>test</td> </tr> <tr> <td nowrap class=p1> name<input type="checkbox" name="name1" value="ON" Checked=true onClick="javascript:onscorll()"> </td> </tr> </table></form><p> </p></body>请大侠帮忙 <html><head><title>输入区</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body onkeydown="KeyDown()" oncontextmenu="event.returnValue=false" leftmargin=5 topmargin=2 marginwidth=5 marginheight=2 bgcolor=eeeeee ><script language="Javascript"><!--function onscorll(){ if(document.submitform.name1.Checked==true){ alert('yes'); document.submitform.name1.Checked=false; }else{ alert('no'); document.submitform.name1.Checked=true; }}// --></script><form action="send" name=submitform target="temp" method="post" > <table width="100%" border="0" cellspacing="2" > <tr> <td>test</td> </tr> <tr> <td nowrap class=p1> name<input type="checkbox" name="name1" value="ON" Checked=true onClick="javascript:onscorll()"> </td> </tr> </table></form><p> </p></body> if(document.submitform.name1.Checked==true){-------->if(document.submitform.name1.checked==true){ <HEAD><SCRIPT>function checkthis(){ if (name1.checked) { alert("yes"); }else{ alert("no"); }}</SCRIPT> </HEAD><BODY>Check here if you wish to go to Microsoft:<INPUT TYPE=checkbox name="name1" value="ON"onClick="checkthis()"></BODY> 哪位老大来帮我看看这个程序为什么在一个地方报错? firfox中,如何使rangecount大于一,获取选中单元格问题 javascript 出现数据类型不匹配 高分求!!!div仿showModalDialog 弹出窗口代码 问一个超级变态的问题? 如何使IE打印预览窗口右上方的带"X"的关闭按钮无效? JavaScript 中数组问题 高手帮我看看这是怎么回事? 斑竹,我想到了解决以下我的帖子的最佳方法,一会贴上来 下拉框之间的内容如何能互相联系? 如何用js改变表单域的背景颜色? 请问:怎样在iframe中动态加入VML??
<html>
<head><title>输入区</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body onkeydown="KeyDown()"
oncontextmenu="event.returnValue=false" leftmargin=5 topmargin=2 marginwidth=5 marginheight=2 bgcolor=eeeeee >
<script language="Javascript"><!--
function onscorll(){
if(document.submitform.name1.Checked==true){
alert('yes');
}else{
alert('no');
}
}// --></script>
<form action="send" name=submitform target="temp" method="post" >
<table width="100%" border="0" cellspacing="2" >
<tr>
<td>test</td>
</tr>
<tr>
<td nowrap class=p1> name<input type="checkbox" name="name1" value="ON" Checked=true onClick="javascript:onscorll()"> </td>
</tr>
</table>
</form>
<p> </p>
</body>
请大侠帮忙
<head><title>输入区</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head><body onkeydown="KeyDown()"
oncontextmenu="event.returnValue=false" leftmargin=5 topmargin=2 marginwidth=5 marginheight=2 bgcolor=eeeeee >
<script language="Javascript"><!--
function onscorll(){
if(document.submitform.name1.Checked==true){
alert('yes');
document.submitform.name1.Checked=false;
}else{
alert('no');
document.submitform.name1.Checked=true;
}
}// --></script>
<form action="send" name=submitform target="temp" method="post" >
<table width="100%" border="0" cellspacing="2" >
<tr>
<td>test</td>
</tr>
<tr>
<td nowrap class=p1> name<input type="checkbox" name="name1" value="ON" Checked=true onClick="javascript:onscorll()"> </td>
</tr>
</table>
</form>
<p> </p>
</body>
<SCRIPT>
function checkthis()
{
if (name1.checked)
{
alert("yes");
}else{
alert("no");
}
}
</SCRIPT>
</HEAD>
<BODY>
Check here if you wish to go to Microsoft:
<INPUT TYPE=checkbox name="name1" value="ON"onClick="checkthis()">
</BODY>