html button click refreshes page code example
Example 1: refresh button html
<button onClick="window.location.reload();">Refresh Page</button>
Example 2: how to make form not reload page
<form onsubmit="return false">
</form>
Example 3: reload pageon button click
<button type="button" onClick="window.location.reload();">Close</button>