Hopefully this is quite a simple question for someone to answer as I have been searching endlessly to no avail
I want to design a simple online test using JavaScript Validation
I have started with the following code

<input type="button" name="SubmitButton" value="Check Answers" onClick="ValidateForm(this.form)">
<input type="reset" value="Reset">
</form>
</body>
</html>
Basically when the correct answer is entered in this case blue not only do I want the message window to open, I either want to open a new html page with a different question or make another question visible (whichever is easier/ preferably both if it is a long test). The post function is not essential at this stage but would be nice if I got emails advising me of incorrect or correct answers. I was playing around with adding something like form action="next.html" method="OPEN" to the validation statement when it returns a correct answer.
Obviously when an incorrect answer is given then the person cannot proceed until the correct answer is entered
If anyone can help me out it would be greatly appreciated as I said have been having a bit of trouble working out how to do this. Thank you in advance to all of you that endeavor to try and help me out on this one
Thank you

rangana

10-03-2008, 07:09 AM

The easier is to direct to the next page for a question when the correct answer is selected: