Codesupplier.com

free html codes for your website

Refresh (also known as reload)

Are you looking for a Javascript that allows your users to refresh pages on your website? If you are this html code is for you. You can create a button like below on your website.

This code comes in useful when you are rotating content on your webpages, but you can use it for any purpose you need.

Paste the following code into your editor where you want the refresh button to appear. Change the button text red to suit your needs.

 

<form method="post">
<input type="button" value="Reload Window"
onclick="window.location.reload()">
</form>

 

< Go Back to Javascript Snippets