I have an array of URLs, say
pageList = ["index.html", "01.html", "02.html"]
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.
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
window.location = currentLocation + 1
Sorry for the noob question, it really comes from a noob. Ta!