1. Home
  2. Computing & Technology
  3. JavaScript

Alternate Analysis Quiz

2. Quiz Body Script

The next step is to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called quizbody.js.

You then link this code into the body of your page where you want the script to appear using the following code:

<script src="quizbody.js"
type="text/javascript">
</script><noscript><table align="center"
cellpadding="3" width="350" border="1"><tr>
<td align="left"><div><b>This Quiz requires Javascript</b>
</div><blockquote>You either have Javascript disabled
<br />or the browser you are using does not<br />
support Javascript. Please use a Javascript<br />
enabled browser to access this quiz.<br />&nbsp;<br />
</blockquote></td></tr></table></noscript>

Now that we have the quiz page done, the next step is to add the necessary scripts to each of the comment pages to generate a link back to the next quiz question.

Quiz Head Script | Quiz Body Script | Comment Page Scripts | Analysis Head | Analysis Body

Explore JavaScript

More from About.com

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.