button clicks when reloading page code example
Example 1: how to make form not reload page
<form onsubmit="return false">
</form>
Example 2: reload pageon button click
<button type="button" onClick="window.location.reload();">Close</button>
<form onsubmit="return false">
</form>
<button type="button" onClick="window.location.reload();">Close</button>