Q:

alert without page refresh

// note that its the return false; that prevents the page refresh.
<button onclick="alert('Hello'); return false;">Click</button>
1

New to Communities?

Join the community