I am a begineer and working on a project. Facing trouble linking a submit buuton to a page of my choice.Script i am using is:
Expand|Select|Wrap|Line Numbers
- <SCRIPT language=JavaScript><!--
- function validate(form) {
- for (var i=0; i <form.elements.length; i++) {
- if (form.elements[i].type == 'button') {
- if (!form.elements[i].clicked) {
- alert('Complete the 1st line checks!');
- return false;
- }
- }
- }
- return true;
- }
- //--></SCRIPT>
- <FORM onsubmit="return validate(this)">
- <P align=center><STRONG><FONT size=3>Error 680-Flashing adsl light</FONT></STRONG></P>
- <P> </P>
- <P> </P>
- <P> </P>
- <P> </P>
- <P>Modem is connected to master bt socket.<INPUT onclick=this.clicked=true type=button value=Done><BR><BR>Extension wire has been removed.<INPUT onclick=this.clicked=true type=button value=Done><BR><BR>Extra devices hve been removed from the line.<INPUT onclick=this.clicked=true type=button value=Done><BR><BR>Microfilters have been swapped.<INPUT onclick=this.clicked=true type=button value=Done> <BR><BR><BR><BR><INPUT type=submit onchange="if (this.disabled) this.selectedIndex=0" value="Completed the 1st line checks." name=mySel><A onclick="rusure(); return false;" href=""></A></P></FORM>
I want to link the submit button with value=" Completed the 1st line checks" to a new page as well or in other words once the user has completed all the checks and then presses the submit button it takes him to a page of my choice.
Can any one help,please?