87,917
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function checkFour()
{
var index = 0;
while (index < 1)
{
window.document.the_form.elements[index].checked = true;
index = index + 1;
}
}
</script>
</head>
<body>
<form name="the_form">
<input type="checkbox" />1
<input type="checkbox" />2
<input type="button" onClick="checkFour();" />
</form>