JavaScript deja de que el formulario recarga

Use <button type="button"> to override default submission behavior
Use event.preventDefault() in the onSubmit event to prevent form submission
Ronnie