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.
Script works with IE, but not with Mozilla.. Any suggestions
Moderator: General Moderators
-
pistolfire99
- Forum Commoner
- Posts: 58
- Joined: Thu May 23, 2002 3:18 pm
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
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
-
pistolfire99
- Forum Commoner
- Posts: 58
- Joined: Thu May 23, 2002 3:18 pm
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
Thanks again for replying though.
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>