redirect to previous url code example
Example: html redirecting to previous page
<a href="#" onclick="javascript:window.history.back(-1);return false;">Back</a>
<a href="#" onclick="javascript:window.history.back(-1);return false;">Back</a>