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 programmer familiar with PHP, MySQL, HTML5, CSS3, JavaScript, Java, Swift, Python and C#. He makes Android and iOS games and apps. He's also good at graphics design, video editing, visual effect and animation.