Answers for "html submit but only refresh"

0

submit() refreshes the page

<form onsubmit="return false;">Form stuff in here</form>
Posted by: Guest on October-20-2020
0

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>
Posted by: Guest on March-16-2022

Code answers related to "html submit but only refresh"

Code answers related to "Javascript"

Browse Popular Code Answers by Language