title: javascript onclick from array in order
body: <p>I am making a YES/NO questionnaire that goes one question at a time and has a 'Next' button at the bottom of the question.</p>
  
  <p>I want the Next button to cycle to the next question in the array with each click. How would I do this?</p>
  
  <pre><code> &lt;button class="btn btn-large btn-block btn-primary" type="button"   onclick="nextQuestion()"&gt;Next&lt;/button&gt;
  
      function nextQuestion(){
          document.getElementById("questionArea").innerHTML = ???,
  
  }
  
  var questionSet = new Array();
      questionSet[0] = "";
      questionSet[1] = "";  
      questionSet[2] = "";
      questionSet[3] = "";
  </code></pre>