Navigating previous and next page based on file name number

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. Check the demo below:

loading...