代码如下: <SCRIPT LANGUAGE="JavaScript"> <!-- function change() { var c=document.myform.mybox; if (c.checked) { c.checked=false; } else { c.checked=true; } } //--> </SCRIPT> <FORM METHOD="POST" ACTION="" name="myform"> <INPUT TYPE="checkbox" NAME="mybox" value="1" > </FORM> <INPUT TYPE="button" onclick="change();" value="改变">