url in javascript

admin

Administrator
Staff member
Can someone please help me with this script:

to make this script proceed to the next page after checking off which checkbox they have checked , do i use a url line of code within the javascript or just the action method in html??

i would prefer to know how to do it in javascript.

someone help me please!!

<SCRIPT>
<!--
function check() {
g=document.declaration;
if(g.disagree.checked==true && g.agree.checked==true){
alert("You cant tick both boxes!");
return false;
} else if(g.disagree.checked==true){
alert("You can't proceed");
return false;
} else if(g.agree.checked==true) {
return true;

//can i put a url insert in here??

} else {
alert("You havent ticked a box!")
return false;
}
}

//-->
</SCRIPT>

<!--Start of declaration form-->

<form name="declaration" action="applications.html" >

<center>
<input type="checkbox" id="disagree" value=http://www.webdeveloper.com/forum/archive/index.php/"declaration" />Disagree
<input type="checkbox" id="agree" value="declaration" />I agree

</center>

<br>
<br>

<center>

<input type="button" value="Begin" name="applications" align="right" onClick="return check();">

</center>

</form>
 
Back
Top