I need scripted Next and Prev buttons to flip through pages
In order to do this I'm using a script that goes something like this (it doesn't work so this is just the idea of it).
document.write('<input type=button value="Next" onclick="this.href='page2.html'">');
There are 2 issues I'm having.
The first is that unless I put the full url (e.g. "C://web/page1.html") the document.write doesn't run. I need to be able to test the actual page reference, not it's full path as this is local and will be uploaded.
The second is how to get the changing next button href to essentially be page1.html + 1, page[n].html +1 if you like.