Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js onsubmit prevent default

<form onsubmit="return mySubmitFunction(event)">
  ...
</form>

function mySubmitFunction(e) {
  e.preventDefault();
  someBug();
  return false;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #onsubmit #prevent #default
ADD COMMENT
Topic
Name
7+1 =