js to refresh form code example
Example: why does my form reload the page? html js
document.getElementById("prospects_form").addEventListener('submit', function(event){event.preventDefault();});
document.getElementById("prospects_form").addEventListener('submit', function(event){event.preventDefault();});