摘要: 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] 阅读全文
posted @ 2016-07-29 22:22 goqiang 阅读(217) 评论(0) 推荐(0) 编辑
摘要: <INPUT name="checkButton" type="button" id="checkButton" value=" 提 交 " onClick="check( )"> 效果图如下: 阅读全文
posted @ 2016-07-29 21:22 goqiang 阅读(318) 评论(0) 推荐(0) 编辑
摘要: <FORM action="" method="post" name="myform" onSubmit="return check( )" > ..... </form> 阅读全文
posted @ 2016-07-29 18:24 goqiang 阅读(274) 评论(0) 推荐(0) 编辑
摘要: javaScript代码: 阅读全文
posted @ 2016-07-29 17:05 goqiang 阅读(723) 评论(0) 推荐(0) 编辑