How to create a back button in html?
I want to add a back button in my website.Once visitor click on that button will direct back to the page.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Just add the below code in your webpage. In the below code the -1 tells the browser to go back one page.
<form>
<input type="button" value="Back" onClick="history.go(-1);return true;">
</form>
Try this one
<button onclick="GoBack()">GO BACK</button>
<script>
function GoBack () {
window.history.back();
}
</script>