<script language=VBScript>
function checkname()
if trim(document.form1.yonghuming.value)="" then
alert("用户名为空")
exit function
end if
end function
</script>
function checkname()
if trim(document.form1.yonghuming.value)="" then
alert("用户名为空")
exit function
end if
end function
</script>
exit function后不会继续执行了后面的代码阿,而不会停在这里叫你继续输入
exit function后继续执行了后面的代码阿,而不会停在这里叫你继续输入