Joined
·
46,076 Posts
in IE 5,6,7 it yields a page error saying "}" expected on line 42. I highlighted line 42 in yellow. Line 42 is basically saying exactly what IE is expecting, yet it pops up the error. I don't know much about opening and closing brackets.. argh....
IE 8, and all versions of mozilla seem to be happy with this script.
</script>
<script type="text/javascript">
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){ //hunt down submit button
var tempobj=checkobj.form.elements
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
</script>
<script type="text/javascript">
function checkCheckBox(f){
if (form1.agree.checked == false )
{
alert('You must agree to the Terms and Conditions to continue.');
return false;
}else
return true;
}
</script>
IE 8, and all versions of mozilla seem to be happy with this script.
</script>
<script type="text/javascript">
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){ //hunt down submit button
var tempobj=checkobj.form.elements
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
</script>
<script type="text/javascript">
function checkCheckBox(f){
if (form1.agree.checked == false )
{
alert('You must agree to the Terms and Conditions to continue.');
return false;
}else
return true;
}
</script>