Skip to main content
Participant
February 6, 2024
Question

Javascript for Theme-buttons don't work

  • February 6, 2024
  • 1 reply
  • 117 views

Hello,

I currently use:

RoboHelp version 2022.2.22

Output: Frameless

Skin: Dark
OS: Windows 10 / 64 Bit

And I have the following problem:

I need to display the output in a browser (Chrome) in fullscreen mode. The browser's forward and backward buttons are not available to me because they are not visible in full-screen mode.

So I want to create two topic page buttons for this that can be used as forward and backward buttons.

I created the 2 buttons under “Theme buttons > add”, gave them names and also stored symbols. The keys appear correctly in the preview and in the output.

Now I have entered the following for the buttons in the section under “Theme buttons > Javascript”:

Page back key: window.history.back()

Page forward key: window.history.forward()

I then saved everything and regenerated and re-displayed the project using Frameless/Dark. The buttons are visible, the symbols are displayed but unfortunately the functions are not carried out.

To test whether the functions in the browser work, I activated the browser without full-screen mode. The browser's internal buttons work. However, the buttons on the topic page are not there again.

What can I do?

I would be very happy to receive a solution suggestion.

Thanks in advance for the support.

Many greetings, Plarad.

    This topic has been closed for replies.

    1 reply

    Peter Grainge
    Community Expert
    Community Expert
    February 6, 2024

    @HeinzPla I have edited your post by copying it to Word and then back in. For some reason your post was not wrapping properly making it difficult to read. I'm guessing you typed in some program and then pasted it in. Whatever you used, the forum didn't like it. 🙂

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.