1. Home
  2. Computing & Technology
  3. JavaScript

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 all that is left to do is to create your analysis page with an analysis of what the result means.

Quiz Head Script | Quiz Body Script | Analysis Page | Analysis Body
Explore JavaScript
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, 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.