<script language="VBScript">
<!--
Function datacheck()
If Len(Trim(ly.name.value)) = 0 Then
msg = "别忘了填'昵称'"
MsgBox msg, 64, "你好"
Exit Function
End if
ly.Submit
End Function
-->
</script>
.......
<input type="button" value="写完了" name="ret" onclick="datacheck">