플밍_기타
HTML ( Form ) - 간단하면서도 맨날 까먹는 LOGIN 박스
잠수콩
2008. 11. 17. 15:50
<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>