---
title: "document.forms[0].submit()不提交表单"
author: "qingzuochen"
date: "2010-12-08T15:25:09Z"
tags: []
categories: ["Web前端"]
slug: "document-forms-0-submit"
draft: false
lastmod: "2010-12-08T15:25:09Z"
id: 836718
url: "https://zochen.iteye.com/blog/836718"
---

同事遇到了document.forms.submit()不提交表单的问题。我看了看，先检查form有没有正

确获取，发现form已经是正确获取的，但是就是不能提交，左思右想找不到思路，网上查了查。

找到个英文网站<http://thetwistedcables.com/java-world/jsp-and-servlets/error-with-document-forms0-submit-message-object-doesnt-support-this-property-or-method/>。
英文不好看懂了个大意。大概就是form里有个标签名叫submit覆盖了JavaScript对象submit，导

致了这个问题。一检查，果然是，改了下标签名，刷新一试，搞定！