I want to Implement Back button Similar to how the browser . I don't have any idea on how to Do this . Please suggest me a way whether i can do it in java script .
Asked
Active
Viewed 3,464 times
-3
-
Ok,Show me what you have tried? – Just code Apr 16 '14 at 05:29
-
possible duplicate of [Onclick javascript to make browser go back to previous page?](http://stackoverflow.com/questions/8067510/onclick-javascript-to-make-browser-go-back-to-previous-page) – TURTLE Apr 16 '14 at 05:33
-
it is simple problem, you should try first at your end – A.T. Apr 16 '14 at 05:40
3 Answers
5
try
<input onclick='javascript:window.history.back()' value='Back' type='button' />
<input onclick='javascript:window.history.forward()' value='Next' type='button' />
this is simple javascript.
Note this will not work in following cases:
- History is cleared
- Open in new browser
- Ajax based websites, as no history is maintained for ajax driven applications.

A.T.
- 24,694
- 8
- 47
- 65
-
I want a buttton like thing a the bottom of my page . So that whenever a user clicks back . It just goes to the previous page or Next button for forward page – user3095218 Apr 16 '14 at 05:34