Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Code:
var cntDone=0;
var answer1=null;
var answer2=null;
var answer3=null;
var answer4=null;
while(cntDone<4){
answer1=window.prompt("what?");
answer2=window.prompt("what?");
answer3=window.prompt("what?");
answer4=window.prompt("what?");
cntDone++;
}
You could use an array for the answers, but if you are not familiar with javascript programming, I recommend you to start easy.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 04-04-2008 at 03:11 PM..
|