html form submit don't reload page code example
Example: html prevent submit from reloading page
<form onSubmit="return false; // Returning false stops the page from reloading">
<button type="submit"></button>
</form>
<form onSubmit="return false; // Returning false stops the page from reloading">
<button type="submit"></button>
</form>