how to use the reload button as a evevnt in js code example
Example 1: refresh window js
window.location.reload();
Example 2: refresh button html
<button onClick="window.location.reload();">Refresh Page</button>
window.location.reload();
<button onClick="window.location.reload();">Refresh Page</button>