1

I'd like to add a back button in my navbar in order to be able to return to the previous page (I want the same behaviour when I click on this button and when I click on my browser's back button).

I wonder what is the best way to do it ?

4

1 回答 1

1

All you need to do is add an event listener on your back button and call this code in the handler window.history.back();

于 2012-07-24T15:18:50.607 回答