John C
John C

Reputation: 6527

Can the Browser 'Forward' Button be Set from HTML?

Example: At the bottom of the StackOver Questions page are a bunch of page numbers (1,2,3...), enclosed in a set of prev and next buttons. Clicking next repeatedly will bring me to, say page 5, at which point I will have:

Obviously, if I hit the Back button on the Browser, then Forward will have a value, pointing to the URL for page 5 - but not otherwise.

Is there any way, from HTML (plus Javascript), to set the value of the Browser's Forward button? Or is this one of those things that HTML is simply forbidden to do?

Upvotes: 4

Views: 213

Answers (2)

tylermac
tylermac

Reputation: 489

You are possibly looking for custom links, although I am not aware of any major browser that utilizes them.

Upvotes: 5

Quentin
Quentin

Reputation: 943569

This isn't possible.

Besides, back and forwards are about where the user has been, not a specific logical sequence of pages.

Upvotes: 2

Related Questions