<input type="button" name="Button" id="button" value="중복검사" onClick="self.location='./check_id.jsp';">
<head>~</head> 부분엔.

<script language='javascript'>
function checkTure(){
if(document.checkFrm.checkValue.checked){
document.checkFrm.submit();
}
else{
alert("반드시 체크해야 합니다!");
}
}
</script>


<body>~</body> 부분.

<table border="0" cellspacing="1" cellpadding=1 width="480"
     id="AutoNumber1">
     <form name=checkFrm action="checkbox.asp" method=post>
     <tr>
      <td align="center"><input name=checkValue type=checkbox
       value=1> 동의합니다 </td>
     </tr>
     <tr>
      <td align="center">
      <input type=button name=checkBnt
       value="확인" onClick="checkTure();"></td>
     </tr>
    </table>

+ Recent posts