title: How can I create jquery previous and next buttons that go through URLs in an array (pagination)
body: <p>I have an array of URLs, say </p>
  
  <pre><code>pageList = ["index.html", "01.html", "02.html"]
  </code></pre>
  
  <p>and I want to create a function in which .prev and .next go to the previous/next item in that array, so if I'm in index.html, clicking next will go to "01.html", and if i'm in "01.html" it'll go to "02.html" and so on.</p>
  
  <p>How could I do that? I have found many "pagination" jquery plugins, but they all seem to paginate through divs in the same URL, but I need something that actually goes to another page, something like</p>
  
  <pre><code>window.location = currentLocation + 1
  </code></pre>
  
  <p>Sorry for the noob question, it really comes from a noob.
  Ta!</p>