Skip to main content
johnvarvatsis
Inspiring
March 27, 2018
Answered

How can I make a back button in a topic?

  • March 27, 2018
  • 1 reply
  • 751 views

I've created several topics which will be accessed from several places in my help system. When the user has finished reading the topic, they should be able to navigate back to the topic they were reading.

The only way they can do that is via the browser's back button. It would be nice if I could do this using a built in button. is this possible?

This topic has been closed for replies.
Correct answer Captiv8r

Hi there

This should be easy. You first need to decide if you want an actual button object or if you are happy with just an image that looks like a button that the user will click. Or, possibly, you want to supply just text to click.

The image or text is likely the simplest. What you would do is to perform the same steps you would if you were creating a hyperlink. But where the link destination goes, you add a small bit of JavaScript. It should look like this:

In case you want to copy the code, here it is:

javascript:history.back();

Cheers... Rick

1 reply

Captiv8r
Captiv8rCorrect answer
Brainiac
March 27, 2018

Hi there

This should be easy. You first need to decide if you want an actual button object or if you are happy with just an image that looks like a button that the user will click. Or, possibly, you want to supply just text to click.

The image or text is likely the simplest. What you would do is to perform the same steps you would if you were creating a hyperlink. But where the link destination goes, you add a small bit of JavaScript. It should look like this:

In case you want to copy the code, here it is:

javascript:history.back();

Cheers... Rick

johnvarvatsis
Inspiring
March 28, 2018

Brilliant! Thanks