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:

Getting boored? Why not playing a game?

Power Block

Tiki Solitaire

Pet Connect

Cake Shop

Jewels Blitz 3

Forest Match

Bike Racing


Solitaire Swift

Bubble Shooter Classic HD

Black and white snake