Click here to Skip to main content
15,746,302 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

I want to provide Previous and Next functionality in html pages.
When i click on "Next" button it should take me to next page related to that topic.
var pages=["1.html","2.html","3.html"];

so if I at the index(main page) and click on next it should take me to "1.html" and if next is clicked then "2.html"...
Similarly for "Previous" button.

This will be applicable to each html page I have.
As each page has different topics.


1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900