refresh page function in 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: how to reload a page in javascript
location.reload();
Example 4: script refresh js
window.location.href = window.location.pathname + window.location.search + window.location.hash;