Advertisement
728x90
You can submit a form using document.forms[0].submit(). All the form input's information is submitted using onsubmit event handler
javascript
1function submit() {
2
3document.forms[0].submit();
4}Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 4
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
89of476