0

How would I go about making Next and Previous links that automatically take you to the proper pages without having to set the hyperlinking on each individual page?

6
Contributors
7
Replies
9
Views
10 Years
Discussion Span
Last Post by MidiMagic
0

Not quite clear what you are asking. From within a java applet, or just on a normal site? If just on a normal website here is my answer:
Have each file named number 1.html, 2.html etc. In javascript make a variable called i and set it to the current page number (ex: 2). If the user clicks next increment i (ex:3) or decrement it (ex:1). Then go the the page i.html.

0

Does you question have anything to do with Java? 'Cause javascript and html have nothing to do with Java.

0

Does you question have anything to do with Java? 'Cause javascript and html have nothing to do with Java.

I found this thread last night during a search for a solution. I did not realize that this was in the Java forum. I am very sorry.

Sorry

0

Thanks, yeah this is what I'm looking for... I wanted to have this work within a normal site. Unfortunately I don't even know how to create variables in javascript or really much of any coding outside of html.

0

How would I go about making Next and Previous links that automatically take you to the proper pages without having to set the hyperlinking on each individual page?

0

There is no such thing. How would it know what the name of the "next " page is, without you telling it?

Set the hyperlinks on each page. That's all you can do without a lot of tricky JS code.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.