title: Next/Previous navigation through predefined list of HTML pages
body: <p>Im in a bit of a pickle here, I've bin googleing for some time now, but cant seem to find what Im looking for, so i hope you guys can help.</p>
  
  <p>I want to create a list/array of unique URL´s, that i can navigate through with Next/Previous buttons.</p>
  
  <p>Something like this:</p>
  
  <pre><code>var caseList = [
      'case-name-of-some-client.html',
      'case-another-client-name.html',
      'case-one-more-client-name.html',
      'case-last-client-name.html'
  ];
  &lt;a href="#" onClick="caseListGotoNextUrl"&gt;Next&lt;/a&gt;
  &lt;a href="#" onClick="caseListGotoPreviousUrl"&gt;Previous&lt;/a&gt;
  </code></pre>
  
  <p>Example: i am on www.mydomain.com/case-another-client-name.html, and click next, it checks the url in the address bar, and takes me to www.mydomain.com/case-one-more-client-name.html, because its next on the list, and vice versa if i click Previous.</p>
  
  <p>It would also be nice, if it could loop, so when its at the end of the list, i just goes to the first url again, and vice versa. </p>
  
  <p>Im a total noob with all this js stuff, so any help would be appreciated.</p>
  
  <p>Cheers, Jens</p>
  
  <p>p.s. i am using jquery.</p>