Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript stop the form from reloading

Use <button type="button"> to override default submission behavior
Use event.preventDefault() in the onSubmit event to prevent form submission
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #stop #form #reloading
ADD COMMENT
Topic
Name
1+8 =