RazorianFly
Apr 16th 2007, 9:53 am
Ok, I have another problem I hope you lot can help me with.
I have a script as follows:
<SCRIPT TYPE='text/javascript'>
function switchbutton() {
if (document.myform.btnSubmit.disabled) {
document.myform.btnSubmit.disabled = false;}
else {
document.myform.btnSubmit.disabled = true;}
return true;
}
</SCRIPT>
<FORM NAME=myform>
Agree? <INPUT TYPE=CHECKBOX onClick="return switchbutton();">
<INPUT TYPE=SUBMIT NAME=btnSubmit DISABLED>
</FORM>
It's a validation script I pieced together with bits from various websites. It basically botches out the submit button until the agree tickbox is ticked by the user.
What my query is, is how to I encorporate a "Href" link redirect into the submit button? So that, in this case, the user is redirected to the message board url whe the submit button is clicked after agreeing to the terms.
Is it possible?
Thanks in advance to any responce,
R-Fly
I have a script as follows:
<SCRIPT TYPE='text/javascript'>
function switchbutton() {
if (document.myform.btnSubmit.disabled) {
document.myform.btnSubmit.disabled = false;}
else {
document.myform.btnSubmit.disabled = true;}
return true;
}
</SCRIPT>
<FORM NAME=myform>
Agree? <INPUT TYPE=CHECKBOX onClick="return switchbutton();">
<INPUT TYPE=SUBMIT NAME=btnSubmit DISABLED>
</FORM>
It's a validation script I pieced together with bits from various websites. It basically botches out the submit button until the agree tickbox is ticked by the user.
What my query is, is how to I encorporate a "Href" link redirect into the submit button? So that, in this case, the user is redirected to the message board url whe the submit button is clicked after agreeing to the terms.
Is it possible?
Thanks in advance to any responce,
R-Fly