How to create a back button in HTML

All browsers dispose of a return button. Nevertheless some people prefer having a separate button to their website’s pages allowing visitors to easily navigate the website and to return to a previous page without using the standard return button. Although some javascript is required to keep the creation process simple,It’s fairly easy to create a return button in html. Please find below a code which allows you to easily add a return button to your HTML. It suffices to add the below code to your HTML in order to immediately publish the button:

<FORM>
<INPUT Type="button" VALUE="Go back" onClick="history.go(-1);return true;">
</FORM>


Was this useful?