godseraph / artdialog

Automatically exported from code.google.com/p/artdialog
0 stars 0 forks source link

表单操作弹出层后焦点还在表单上 #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 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

Attachments: