A. Another name for Java
B. A scripting language mostly for the web
C. When you use Java without compiling
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.
Let's look at another sample quiz form. This one will redirect the visitor to correct.htm if the answer is correct or to wrong.htm otherwise. Note the two additional parameters specified in the "checkAnswer()" function: What is JavaScript? Another name for Java
When you use Java without compiling
A scripting language mostly for the web
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.