3초기억력

HTML ( Form ) - 간단하면서도 맨날 까먹는 LOGIN 박스 본문

플밍_기타

HTML ( Form ) - 간단하면서도 맨날 까먹는 LOGIN 박스

잠수콩 2008. 11. 17. 15:50
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.


<script language=javascript>
<!--
function checkInfo()
{
 if (document.REG.AdminID.value == '') {
  alert('운영자 ID를 입력하십시오.');
  document.REG.AdminID.focus();
  return(false);
 }
 if (document.REG.AdminPasswd.value == '') {
  alert('비밀번호를 입력하십시오.');
  document.REG.AdminPasswd.focus();
  return(false);
 }
 
 document.REG.submit();
 return ;
}
//-->
</script>

<body>
<form name=REG method=post action="login.asp" onSubmit="javascript:return checkInfo();">
<input type="text" name="AdminID" size="15" >
<input type="password" name="AdminPasswd" size="15">
<input type="image" src="../image/login_conf.gif" border="0">
</form>
</body>

<script language="JavaScript">   
 document.REG.AdminID.focus()
</script>
Comments