stop refreshing on submit 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>