refresh a function javascript code example
Example 1: refresh window js
window.location.reload();
Example 2: js refresh button
<a onClick="window.location.reload()">Refresh</a>
window.location.reload();
<a onClick="window.location.reload()">Refresh</a>