Demo:
What is JavaScript? Top of Form A. Another name for Java B. A scripting language mostly for the web C. When you use Java without compiling Bottom of Form
That's it! Simply keep changing the questions and answers to create more quiz forms.
Just be sure to setup the HTML tags in the following format. The NAME tag must be "cc" and there should not be any other fields named "cc". The letter specified for the VALUE tag is the ID for the answer (start with "A" and keep incrementing as in the above sample. "X" is the answer ID in the following sample code):
Custom answer text
The other thing to check is the onSubmit tag for the quiz form as shown below. "Y" is the letter ID for the correct answer. This letter must be assigned to one of the answers in the quiz form.
Now that you know how to create a quiz form using JavaScript, want to make it a pop-quiz form? This page can help you to make your quiz forms pop-up.