submit() refreshes the page
<form onsubmit="return false;">Form stuff in here</form>
submit() refreshes the page
<form onsubmit="return false;">Form stuff in here</form>
html from submitting with out reload
1his form has no submit input, thus it won’t reload the page because the form will never get submitted, but the javascript function will be executed the button input is clicked.
2
3
4
<form action="#">
<input type="text"/>
<input type="button" onclick="yourJsFunction();"/>
</form>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us