-1

I am working on Joomla. I want to create a button so that if I click on that button browser redirects to previously processed page.How to make a button to act like browser's back button? This question was asked earlier here.I tried all those solutions. but none is working for me. Plaese answer this question. Thanks in advance.

pk2218
  • 111
  • 2
  • 9

2 Answers2

4
<button onclick="window.history.back()">Go back</button>

Read more about it here: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history

Try the button here: http://jsfiddle.net/GTQ48/

Shomz
  • 37,421
  • 4
  • 57
  • 85
4

JavaScript button:

<button onclick="window.history.go(-1)">Back</button>

Source: Go back button in a page

Community
  • 1
  • 1