Javascript examples for Browser Object Model:History
The back() method loads the previous URL in the history.
None
No return value
The following code shows how to go back to previous page.
<!DOCTYPE html> <html> <body> <button onclick="goBack()">Go Back</button> <script> function goBack() {//from w w w .j a v a 2s . co m window.history.back(); } </script> </body> </html>