stop link from refreshing the page on clik javascript code example Example: page reloads after onclick <button onClick="history.go(0);">Refresh Page</button>