Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to run js before submit html

<form onsubmit="return do_something()">

function do_something(){
   // Do your stuff here
   return true; // submit the form

   return false; // don't submit the form
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #js #submit #html
ADD COMMENT
Topic
Name
1+6 =