function checkmima(){
document.getElementById("mima-prompt").innerHTML="";
var pwd=document.getElementById("mima").value;
if(pwd==""){
document.getElementById("mima-prompt").innerHTML="密码不能为空"
return false
}
}
<tr>
<td>密码:</td>
<td><input onBlur="checkmima()" id="mima" name="" type="text"></td>
<td><div id="mima-prompt"></div></td>
</tr>