1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<script language="javascript">
function verifcheckbox(formaction) {
if(formaction.elements["case_valid_ticket"].checked == true) {
window.open('test2.html','Confirmation','width=530,height=470');
}
else {
alert("pas cochée");
}
}
</script>
</head>
<body >
<form name="formaction" ACTION="popup.php" METHOD="POST">
<input type="checkbox" name="case_valid_ticket" value="1">Prendre en compte<br>
<input VALUE="enregistrer" type="button" onClick="verifcheckbox(this.form);">
</form>
</body> |
Partager