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

Posted by John C on Stack Overflow See other posts from Stack Overflow or by John C
Published on 2010-05-19T19:04:19Z Indexed on 2010/05/19 19:10 UTC
Read the original article Hit count: 145

Filed under:

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:

  • The page's prev button will be set to 'http://stackoverflow.com/questions?page=4'
  • The Back button on my Browser will have the same value.
  • The page's next button will be set to 'http://stackoverflow.com/questions?page=6'
  • The Forward button on my Browser - won't be set to anything.

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?

© Stack Overflow or respective owner

Related posts about html