日期:2014-05-16 浏览次数:20423 次
<!DOCTYPE HTML>
<html>
<head>
<meta charset="gb2312" />
<title></title>
</head>
<body>
<form action="?" onsubmit="return check(this)">
帐号<input name="a" />
<input type="submit" />
</form>
<script>
function check(f){
if( f.a.value == '' ){
alert('请输入帐号');
f.a.focus();
return false;
}
test();
return false;
}
function test(){
alert('其他脚本')
}
</script>
</body>
</html>