Open GoogleCodeExporter opened 8 years ago
<script> function chk(frm){ if(frm.name.value==''){ art.alert('那些年,我们一起追的女孩'); frm.name.focus(); return false; } } </script> <form id="form1" method="post" action="" onsubmit="return chk(this)"> <input type="text" name="name" id="name" /> <input type="submit" name="button" id="button" value="提交" /> </form> 现在只能把 frm.name.focus();去掉 弹出层出现后 焦点没有改变
Original issue reported on code.google.com by chfe...@gmail.com on 11 Apr 2012 at 5:00
chfe...@gmail.com
Attachments:
Original issue reported on code.google.com by
chfe...@gmail.com
on 11 Apr 2012 at 5:00Attachments: