中文(简体)
<script> var checkobj function recognizesubmit(el){ checkobj=el if (document.all||document.getElementById){ for (i=0;i<checkobj.form.length;i++){ //寻找提交按钮 var tempobj=checkobj.form.elements[i] if(tempobj.type.toLowerCase()=="提交") tempobj.disabled=!checkobj.checked } } } function defaultagree(el){ if (!document.all&&!document .getElementById){ if (window.checkobj&&checkobj.checked) return true else{alert("请阅读/接受提交表单的条款") return false } } } </script> <form name="agreeform" onSubmit="return defaultagree (this)"> <input name="agreecheck" type="checkbox" onClick="agreesubmit(this)"><b>你确认这些都是正确的吗?</b><br> <input type= "Submit" value="提交"disabled> </form> <script> //将下面的两个名称更改为您的表单名称 document.forms.agreeform.agreecheck.checked=false </script>