on page refresh show alert code example
Example: alert without page refresh
// note that its the return false; that prevents the page refresh.
<button onclick="alert('Hello'); return false;">Click</button>
// note that its the return false; that prevents the page refresh.
<button onclick="alert('Hello'); return false;">Click</button>