html evitar enviar la página de recarga
<form onSubmit="return false; // Returning false stops the page from reloading">
<button type="submit"></button>
</form>
RyanGar46
<form onSubmit="return false; // Returning false stops the page from reloading">
<button type="submit"></button>
</form>
Use <button type="button"> to override default submission behavior
Use event.preventDefault() in the onSubmit event to prevent form submission
<script>
if ( window.history.replaceState ) {
window.history.replaceState( null, null, window.location.href );
}
</script>