Highlighted

How can I make a back button in a topic?

Explorer ,
Mar 27, 2018

Copy link to clipboard

Copied

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?

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:

101420173.png

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

javascript:history.back();

Cheers... Rick

TOPICS
HTML5 layout

Views

292

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How can I make a back button in a topic?

Explorer ,
Mar 27, 2018

Copy link to clipboard

Copied

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?

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:

101420173.png

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

javascript:history.back();

Cheers... Rick

TOPICS
HTML5 layout

Views

293

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 27, 2018 0
LEGEND ,
Mar 27, 2018

Copy link to clipboard

Copied

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:

101420173.png

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

javascript:history.back();

Cheers... Rick

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 27, 2018 1
Explorer ,
Mar 28, 2018

Copy link to clipboard

Copied

Brilliant! Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 28, 2018 0