diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/htmlformelement/action | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/htmlformelement/action')
-rw-r--r-- | files/zh-cn/web/api/htmlformelement/action/index.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmlformelement/action/index.html b/files/zh-cn/web/api/htmlformelement/action/index.html new file mode 100644 index 0000000000..32519d4be0 --- /dev/null +++ b/files/zh-cn/web/api/htmlformelement/action/index.html @@ -0,0 +1,31 @@ +--- +title: HTMLFormElement.action +slug: Web/API/HTMLFormElement/action +tags: + - API + - DOM节点 + - HTML表单元素 + - 表单 +translation_of: Web/API/HTMLFormElement/action +--- +<div>{{APIRef("HTML DOM")}}</div> + +<p><strong><code>HTMLFormElement.action</code></strong> 这个js语句能够定义一个{{HTMLElement("form")}}元素中的action属性</p> + +<p>表单的action属性是在服务器上提交表单,这个属性可以被检索或者设置。</p> + +<h2 id="Syntax" name="Syntax">语法</h2> + +<pre class="eval"><em>string</em> = form.action +form.action = <em>string </em> +</pre> + +<h2 id="Example" name="Example">例子</h2> + +<p>form.action = "/cgi-bin/publish";</p> + +<h2 id="Specification" name="Specification">详细说明</h2> + +<p><a class="external" href="http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method" title="http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method">HTML 5, Section 4.10.19.6, Form submission</a></p> + +<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-74049184">DOM Level 2 HTML: action</a></p> |