Another useful button

With this script, you type answer in the field, and, when you click on the button you are either told that you have the correct answer, or the alert gives you the correct answer.
You can copy the script that generates this question, and then, using a text editor's substitute command, replace the zzz in the source code with 1, 2, 34, or 5 or 6 etc. Thus you can have the number of the questions and the names of the variables in synch . Then for the next question simply do the whole process over again. Remember that you need to use the FORM and /FORM commands only once; Use FORM (with the angle brackets) before your javascripts and /FORM after the last one. as you can see I've done by viewing the source code. Notice too that there is no need to use any functions.


zzz. Your Question (Answer is your answer)

This is another version of the same button, but it has two possible correct answers, and the variable to be substituted (other than the variables for the question and answers) is qqq.

qqq. Your Question (Answer is your answer or your second answer)

This is another version of the same button, but it has three possible correct answers, and the variable to be substituted (other than the variables for the question and answers) is yyy.

yyy. Your Question (Answer is your answer or your second answer or your third answer)


||