1. Home
  2. Computing & Technology
  3. JavaScript

Multiple Choice Quiz Maker

2. Main Quiz Script

Now that you have your question and answer script built, the second step is to get the rest of the Javascript. This is even easier for you since I have already written all of the code for you. Simply select all of the content of the below text area and copy and paste it into a new file. We'll keep it separate from your questions because that way you easily create multiple quizes just by creating extra question and answer script files.

Simply save the above code in a file called quizmc.js which we can then link into all of the pages where you want to use multiple choice quizes.

We have one more file to set up before we start adding the quiz to our page but this one is a stylesheet rather than a Javascript file. NEXT >>

Explore JavaScript
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.