So you want to quiz your visitors? Following JavaScript code can help you to easily create Q and A forms for your web pages without using CGI scripts.
The following code will let you display a dialog box indicating whether the selected answer was correct or not. You can also make it redirect the visitor to another web page depending on the answer.
1. First, cut-and-paste the following JavaScript code on to your web page (closer to the top of the page right below the BODY tag is a good location):