login.js 306 B

12345678910111213141516
  1. function CheckForm()
  2. {
  3. if(document.Login.username.value=="")
  4. {
  5. alert("请输入用户名!");
  6. document.Login.username.focus();
  7. return false;
  8. }
  9. if(document.Login.password.value == "")
  10. {
  11. alert("请输入密码!");
  12. document.Login.password.focus();
  13. return false;
  14. }
  15. }
  16. // JavaScript Document