Sometimes, we want to create a button that refreshs when clicked. For example, when you type a wrong website url in chrome, a reload button appears that refreshs the page when clicked. To test it, click (This website will open in new tab) 

How to create a button like this? Well you can create it using html. The code is:

<button onclick="window.location.reload();">Refresh Page</button>

The preview is