Skip to main content
Known Participant
November 19, 2013
Question

Toolbar Navigation - Previous/Next button enhanced script

  • November 19, 2013
  • 1 reply
  • 1365 views

I've found a few topics on how to add the standard skin back/next script to a skin, for that I thank everyone.  I would like to take it to the next level and make it behave even more like browser buttons meaning when a user has never navigated to a 2nd topic the Back button is unavailable (gray), when they have navigated to multiple topics the button is available (blue). Same for the next button.

Standard script:

For back:

javascript:history.go(-1);

For next:

javascript:history.go(1);

Any ideas?

I believe I saw it somewhere before and now I can't find it.

This topic has been closed for replies.

1 reply

Willam van Weelden
Inspiring
November 20, 2013

This requires you to sniff the browser's history. And most browsers see

this as a security threat so they have blocked that. The followig thread

has some suggestions to get this working:

http://stackoverflow.com/questions/3588315/how-to-check-if-the-user-can-go-back-in-browser-history-or-not

Greet,

Willam

Known Participant
November 20, 2013

This is being used in a CHM that was converted from a Webhelp in RH10 does that make any difference?

Captiv8r
Legend
November 20, 2013

Hi there

When you say: This is being used in a CHM that was converted from a Webhelp in RH10, does that mean you are using the feature in RH10 where you are now able to use the CHM as a wrapper in order to present a single .CHM file that presents a skinned WebHelp?

Or are you instead saying that you are now creating CHM output and used to create WebHelp?

Cheers... Rick