为什么判断完后程序直接终止了,不执行了到指定的 action="" 的页面中了 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
<title>Untitled Document</title> 
<script language="javascript"> 
function oosubmit(o){ 
if(o.username.value==""){alert("你的用户命不为空")};return false;} 
return false; 
</script> 
</head> <body> 
<form id="form1" name="form1" method="post" action="11.php" onsubmit="return oosubmit(this)"> 
<label> 
<input type="text" name="username" /> 
</label> 
<p> 
<label> 
<input type="text" name="textfield2" /> 
</label> 
</p> 
<p> 
<label> 
<input type="submit" name="Submit" value="Submit" /> 
</label> 
</p> 
</form> 
</body> 
</html>
本人穷人,每分,有会的帮帮忙哦·