tcollick
12-10-2004, 08:11 AM
Hi everyone,
I have used the script below for our website:
<SCRIPT language=JavaScript>
<!--
//Accept terms & conditions script (by InsightEye www.insighteye.com)
//Visit JavaScript Kit (http://javascriptkit.com) for this script & more.
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
//-->
</SCRIPT>
<form action="/test.html" method="GET" onsubmit="return checkCheckBox(this)">
I accept: <input type="checkbox" value="0" name="agree">
<input type="submit" value="Submit form">
</form>
It is based on this script: http://www.javascriptkit.com/script/script2/accept_term.shtml.
Both scripts work fine on IE but can't I get them to work on Firefox. On IE the script takes the user to designated page as long as the checkbox is ticked. But on Firexfox it does nothing!
Any ideas would be appreciated !
thanks,
Tony
I have used the script below for our website:
<SCRIPT language=JavaScript>
<!--
//Accept terms & conditions script (by InsightEye www.insighteye.com)
//Visit JavaScript Kit (http://javascriptkit.com) for this script & more.
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('Please check the box to continue.');
return false;
}else
return true;
}
//-->
</SCRIPT>
<form action="/test.html" method="GET" onsubmit="return checkCheckBox(this)">
I accept: <input type="checkbox" value="0" name="agree">
<input type="submit" value="Submit form">
</form>
It is based on this script: http://www.javascriptkit.com/script/script2/accept_term.shtml.
Both scripts work fine on IE but can't I get them to work on Firefox. On IE the script takes the user to designated page as long as the checkbox is ticked. But on Firexfox it does nothing!
Any ideas would be appreciated !
thanks,
Tony