button no page refresh when onclick javascript code example Example: how to make form not reload page <form onsubmit="return false"> </form>