How to "window.history.back();" in to button?

Try looking here...