[此贴子已经被作者于2006-6-9 8:52:59编辑过]
这样试试:onsubmit="javascript:return check(this)"<script language=javascript>function check(objForm){if(objForm.username.value == ""){ alert(""); objForm.username.focus(); return false}}</script>