title: display series of images on button click
body: <p>is it possible to display 3 images one after another at each button click using a array in JavaScript?
  I have an array called </p>
  
  <pre><code>var images = ["image1.jpg","image2.jpg","image3.jpg"]
  </code></pre>
  
  <p>The way I need the website to load is for the first picture to already be there. Then when I click on the button I want the next picture to be displayed however replacing the image that was there before. I want this to repeat throughout the entire, so when I click on the button, and if the image being displayed was image3, then image1 should be displayed.</p>
  
  <p>I want to share the code I have so far however I don't know where to start. the only code i have is the layout and a variable.</p>
  
  <pre><code>var images = ["image1.jpg","image2.jpg","image3.jpg"]
  </code></pre>