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