Do you have sequental html pages named from 1.html to 100.html (or whatever the number) and you want to navigate between them? With this javascript code you can navigate to next and previous page easily.