Perfidus
01-17-2004, 07:54 AM
With this script I can force the user to select the checkbox before continuing, but now I have a menu with lots of checkboxes and I would like the user to select at least 2 of them; how can I check it?
<form name=formulario>
<INPUT type=checkbox name=casilla>
<INPUT type=button value="Salir"
onclick="Goingout()">
</form>
<script>
function Goingout(){
if (document.formulario.casilla.checked) window.close()
else alert("Select this option to continue")
}
</script>
<form name=formulario>
<INPUT type=checkbox name=casilla>
<INPUT type=button value="Salir"
onclick="Goingout()">
</form>
<script>
function Goingout(){
if (document.formulario.casilla.checked) window.close()
else alert("Select this option to continue")
}
</script>