Increment through array with onclick- Javascript
<p>I have a carousel of titles and images. When an image is clicked on, the question/title changes. I'm having trouble writing the function/code that will allow me to increment through the questionList array onclick.</p>

<pre><code>var mycarousel_questionList= [
{qID: 1, title: "Question 1"},
{qID: 2, title: "Question 2"},
{qID: 3, title: "Question 3"},
];
</code></pre>

<p>^^that is my array</p>

<pre><code>function mycarousel_questionListInc(){
   pages=mycarousel_questionList.length;
   var pageNo=0;
   document.onclick=pageNo++;
   mycarousel_questionList[pageNo].title;
}
</code></pre>

<p>^^that what I have so far.
Thank you in advance.</p>
