js run method on page refresh code example Example: js refresh button <a onClick="window.location.reload()">Refresh</a>