中文(繁体)
<script> var checkobj function recognizesubmit(el){ checkobj=el if (document.all||document.getElementById){ for (i=0;i<checkobj.form.length;i++){ //尋找提交按鈕 var tempobjj =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="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>