This should work... would stop the form from being processed...
<form action="process.asp" method="post" name="form1" id="form1" onsubmit="return ValidateCheckbox()"
...
function ValidateCheckbox() {
if (document.FormName.Checkbo
return true;}
else {
alert('Please tick to agree with our Terms and Conditions');
return false;}
}
Main Topics
Browse All Topics





by: GustoPosted on 2003-01-09 at 13:05:12ID: 7696890
How about something like this:
ked == false) { ();
function verifyCheckBox() {
if (document.form1.check.chec
alert('Please check box to agree to terms.');
document.form1.check.focus
return false;
}
}
I don't think the focus() part works though. maybe someone else can help you with that.
Thanks,
Gusto