How to emulate browser back button using javascript
html, hyperlink, javascript
Solution
In JavaScript, it's:
history.go(-1);
or
history.back();
Problem
Possible Duplicate: Page history - back button exists? I need to have a link in some pages of a website, by clicking on it, it needs to go back to the previous page, just like the browser's back button. What is the right way to do that? I'm thinking that I should use some client side scripting like Javascript, right?