check box select all, reverse, and uncheck
<title>Untitled Document</title><style>Body{background:#666;}</style><Script>window.onload=function (){ varOBTN1=document.getElementById ('BTN1'); varoBtn2=document.getElementById ('btn2'); varOBtn3=document.getElementById ('Btn3'); varOdiv=document.getElementById ('Div1'); varaCh=Odiv.getelementsbytagname ('input') Obtn1.onclick=function(){ for(varI=0; I<Ach.length;i++) {ach[i].checked=true; } }; Obtn2.onclick=function(){ for(varI=0; I<Ach.length;i++) {ach[i].checked=false; } }; Obtn3.onclick=function(){ for(varI=0; I<Ach.length;i++){ if(ach[i].checked==true) {ach[i].checked=false; }Else{ach[i].checked=true; } } }; };</Script></Head><Body><inputID= "BTN1"type= "button"value= "Select All"/><BR><inputID= "BTN2"type= "button"value= "Not selected"/><BR><inputID= "Btn3"type= "button"value= "Reverse Selection"/><BR><DivID= "Div1"><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR><inputtype= "checkbox"/><BR></Div></Body>
On the charm of JavaScript (iii)