摘要:
1 function validate(){ 2 f=document.reg_form; 3 4 if(f.uname.value==""){ 5 alert("请输入姓名"); 6 f.uname.focus(); 7 return false; 8 } 9 10 if (f.gender[0] 阅读全文
摘要:
<INPUT name="checkButton" type="button" id="checkButton" value=" 提 交 " onClick="check( )"> 效果图如下: 阅读全文
摘要:
<FORM action="" method="post" name="myform" onSubmit="return check( )" > ..... </form> 阅读全文
摘要:
javaScript代码: 阅读全文