samedi 25 août 2018

how to verify multiple otp in a page

for multiple otp verfications any one can re-bult this?

   var question = prompt('Who shot Abraham Lincoln?');
  switch (question) {
  case 'john wilkes booth':
  case 'John Booth':
   case 'John Wilkes Booth':
        alert("That\'s Right!"); window.location.href = 'q2.html'; break;
    default:
        alert("Sorry, that\'s not right.");
        alert('Please try again');
        history.refresh();
   break;
    }

after This should ask next question if answer is correct!go to next, after 4 questions page want to show greetings thanks any idea?

Aucun commentaire:

Enregistrer un commentaire