how to refresh current page 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>
window.location.reload();
<button onClick="window.location.reload();">Refresh Page</button>