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.
Asked
Active
Viewed 2,111 times
2 Answers
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
-
Nice, the original answer got a downvote... – Shomz Mar 31 '14 at 09:52
4
JavaScript button:
<button onclick="window.history.go(-1)">Back</button>
Source: Go back button in a page

Community
- 1
- 1

Alexander Grooff
- 63
- 6
-
-
Actually, I got it from http://stackoverflow.com/questions/13511679/go-back-button-in-a-page. It's a duplicate post really. – Alexander Grooff Mar 31 '14 at 09:43
-
-
-
@shomz...that solution is not working for me.that is why I posted the question again.So that I could find some new solutions.Butttt :( – pk2218 Mar 31 '14 at 10:05