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:

Published by


Habibie is an Indonesian freelance frontend-backend web developer and cross platform mobile app programmer. He's also good at graphics design, video editing, visual effects and animation.