You simply try below code to achieve your requirement. I hope it will work for you.
<button onclick="window.history.go(-1); return false;">Go Back</button>
You simply try below code to achieve your requirement. I hope it will work for you.
<button onclick="window.history.go(-1); return false;">Go Back</button>