In this partof my script, I wanted to create a button ("Done?"). Then when the user clicks on the button, a window.prompt box would appear asking for the # of questions they answered correctly. After they enter the number and press "OK", I wanted a window.alert box to appear telling them their score... below is my code... what is the problem?? :(
You didn't declare the variable quizresults. Rewrite line three as follows:
var quizresults = window.prompt("Enter the numerical value of questions you answered correctly:");
With this change your script should work.
#If you have any other info about this subject , Please add it free.# |
|