这篇翻译不完整。请帮忙从英语翻译这篇文章

 HTMLFormElement.submit()用来提交表单。。

这个方法和触发提交表单按钮很类似,但有所不同:

如果一个表单控件(比如一个提交按钮)的 nameid 的值为 submit,则它将覆盖表单的 submit 方法.

语法

HTMLFormElement.submit()

例子

document.forms["myform"].submit();

规范

HTML Living standard: The form element

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
submitChrome Full support YesEdge Full support 12Firefox Full support YesIE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support

文档标签和贡献者

最后编辑者: RainSlide,