Tip: You can modify some of the code before running
<textarea name="runcool" rows="28" cols="75"><script type= "Text/javascript" >function getcheckboxvalue (checkbox) {if (!checkbox.length&& Checkbox.type.toLowerCase () = = ' checkbox ') {return (checkbox.checked)? Checkbox.value: ';} if (checkbox[0). Tagname.tolowercase ()!= ' Input ' | | Checkbox[0].type.tolowercase ()!= ' checkbox ') {return ';} var val=[];var len=checkbox.length;for (i=0;i<len;i++) { if (checkbox[i].checked) {Val[val.length]=checkbox[i].value}}} Return (val.length)? val: ';} </script> <form name= "Testform" > <input type= "checkbox" name= "lang" value= "php"/> php <input type= "checkbox" name= "lang" value= "java"/> java <input type= "checkbox" name= "lang" value= ". Net"/>. NET <input E= "button" value= "point this gets the value" onclick= "Alert (getcheckboxvalue (this.form.elements[' lang '))"/></form></td > </tr> </table></textarea>