reload web page onclick code example
Example 1: reload pageon button click
<button type="button" onClick="window.location.reload();">Close</button>
Example 2: page reloads after onclick
<button onClick="history.go(0);">Refresh Page</button>
<button type="button" onClick="window.location.reload();">Close</button>
<button onClick="history.go(0);">Refresh Page</button>