What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-11 10:05:18
how to prevent the form from getting automatically submitted javascript
//add event.preventDefault() example, function clickHandler(event){ alert("Hey you clicked the submit button"); event.preventDefault(); } //this will prevent the page from getting automatically refreshed after //the submit button is hit. Add solution
Best helpers
Dodo mugs
+5
Lee lee
+5
Ulrich Stern
+5
S.Exchange
+5
Marc-Olivier
+5
Fcpenha
+5
Superam
+5
KidKai
+5