Well you have two basic options:
1 ) Specify an action and a method for the form and have these carry out your desired results upon acceptance of the terms.
2 ) Edit:
Code:
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
}
}
}
changing return true to whatever command or set of commands you wish to be carried out upon acceptance of the terms. If including more than one command, surround these with the curly braces:
Code:
function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked){
do something on this line;
do another thing here;
}
else{
alert("Please read/accept terms to submit form")
return false
}
}
}
Bookmarks