Sequintial next and previous button?

Discussion in 'HTML & Website Design' started by xXMetalicDustXx, Apr 14, 2011.

  1. #1
    Hey, I am looking to make a "next" and "previous" button for sequntial web pages i.e 1.html 2.html 3.html ect ect im sure there is some sort of code that will take the page it is on, and add one or subtract one.

    help?

    Thanks!
     
    xXMetalicDustXx, Apr 14, 2011 IP
  2. Sepehr

    Sepehr Peon

    Messages:
    568
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try doing that with JavaScript. There are other ways but JS will probably be the easiest one for you. You'll need to get the page name, remove the html part and then as you said it yourself -/+ it with 1 for the next and prev pages.
     
    Sepehr, Apr 14, 2011 IP