Answers for "form submit and refresh the page js"

1

submit() refreshes the page

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

why does my form reload the page? html js

document.getElementById("prospects_form").addEventListener('submit', function(event){event.preventDefault();});
Posted by: Guest on March-03-2021

Code answers related to "form submit and refresh the page js"

Browse Popular Code Answers by Language