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