Page 1 of 1
Script works with IE, but not with Mozilla.. Any suggestions
Posted: Sat Dec 14, 2002 10:30 am
by pistolfire99
Hey guys, this is the URL
http://www.i2l2.com/temp/javascript.html
The scripts works with IE but not with Mozilla 1.2.1. Any suggestion or workarounds on this.
Thank You.
Posted: Mon Dec 16, 2002 4:45 am
by onestop
Hi
Try changing your script to
<SCRIPT LANGUAGE="JavaScript">
function checkCheckBox(f){
if (!document.checkform.agree.checked || !document.checkform.agree2.checked)
{
alert('Please check the box to continue');
return false;
}else
return true;
}
</script>
Andy
http://www.webdevtips.co.uk
Posted: Tue Dec 17, 2002 5:38 pm
by pistolfire99
Hey, thank you for your reply but I figured it out. Did the same thing as u, just a lil differently in the if-then logic
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
function checkCheckBox(){
if ((document.checkform.agree.checked ) && (document.checkform.agree2.checked))
{
return true;
}else
alert('Please Agree to the terms before continuing');
return false;
}
</script>
Thanks again for replying though.