RE: 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.

ankit Senior Developer Asked on January 25, 2017 in HTML.
Add Comment
2 Answers

Just add the below code in your webpage. In the below  code the -1 tells the browser to go back one page.


<input  type="button" value="Back" onClick="history.go(-1);return true;">


Team Leader Answered on January 26, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.