JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

Fill in the Blanks Quiz

3. Obtain the Script

Join the Discussion

Questions? Comments?

The first step in adding a "fill in the blanks" quiz to your page is to copy the following script and attach it to the head section of your page.

Once you have created your code you just save it to an external javascript file. I called mine quizq.js. You then link it into the head of your page using the following code:

<script type="text/javascript" src="quizq.js">
</script>

Now all that remains is to create your text complete with drop down lists.

Introduction | Sample Page | Obtain the Script | Add the dropdowns

Explore JavaScript

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.