refresh button javascript code example
Example 1: refresh window js
window.location.reload();
Example 2: refresh button html
<button onClick="window.location.reload();">Refresh Page</button>
Example 3: js refresh button
<a onClick="window.location.reload()">Refresh</a>
Example 4: script refresh js
window.location.href = window.location.pathname + window.location.search + window.location.hash;