does alert refresh page 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>