3.getElementsByName
例 3.1 getElementsByName()IEFF.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</HEAD>
<BODY>
<script type="text/javascript">
</script>
<INPUT TYPE="checkbox" onclick="choiceAll(this.checked)" >全选
<INPUT TYPE="checkbox" NAME="ch">
<INPUT TYPE="checkbox" NAME="ch">
<INPUT TYPE="checkbox" NAME="ch">
<INPUT TYPE="checkbox" NAME="ch">
<INPUT TYPE="checkbox" NAME="ch">
</BODY>
</HTML>