Javascript problem - Html/Javascript 2?

Dave D

New member
My website consists of 10 pages (001.html - 010.html)

I need to make a "Next button" and a "Previous button".

These need to find out what page it is on and link it back to the last one

For example:
If you were on 005.html - The next is 006 and the previous is 004
And you click 'next'
You will be taken to 006.html

Basically I need a script that will take the person 1 page back or forward.

Note: Writing the whole code in each page is not an option, I want to have about 600 pages total and don't want to re-write each time!

Big thanks
Hey linuleb7,

Thanks very much for the information. Could you give me a very small example pretty please?
I'm not too hot with HTML as it is
 
Back
Top