HTML Web Page Back Button

 

HTML Web Page Back Button

An html web page back button will enable your visitors to click on a button to navigate their browser history. This will make it convenient for them to go back to the previous page they were on or even go forward through their browser history.

If you would like to enable your visitors to click a button to navigate their history, place the following codes within the HTML of your web page where you would like the buttons to appear.

Back

<form>
<input type="button" value="Back" onclick="history.back();">
</form>

 

 
Forward

<form>
<input type="button" value="Forward" onclick="history.forward();">
</form>

Edit the text indicated in bold to whatever you’d like.

Keep in mind, the forward button will only navigate to a page you have previously visited.

By using back and forward history buttons within your web page, you will be adding additional web page navigation for your visitors.

This concludes the html web page back button section.

 

 

 

 
Visit the following pages for a wealth of copy and paste codes and tips:

HTML Tips
Copy and paste special effect HTML codes for your web page.

HTML Codes
An HTML codes chart you can use to copy and paste codes into your web page.

HTML Color Codes
An HTML color codes chart you can use to copy and paste color codes into your web page.

JavaScript Codes
Copy and paste special effect JavaScript codes for your web page.

Web Design Tips
Tips, tricks, and special effect codes for your web page.

HTML Tags
A list of HTML tags.

HTML 5 Tags
A list of the latest HTML tags to be developed.

ASCII Codes
Special text characters and code for your web page.