aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/htmlformelement/target/index.html
blob: ac4d5f1e755a8e4021cb9e10b2ec9ac9435f4863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: HTMLFormElement.target
slug: Web/API/HTMLFormElement/target
translation_of: Web/API/HTMLFormElement/target
---
<div>{{APIRef("HTML DOM")}}</div>

<p>La propriété <strong><code>HTMLFormElement.target</code></strong> représente la cible de l'action (i.e., le cadre de destination dans lequel produire le résultat).</p>

<h2 id="Syntax" name="Syntax">Syntaxe</h2>

<pre class="eval"><em>string</em> = form.target
form.target = <em>string</em>
</pre>

<h2 id="Example" name="Example">Exemple</h2>

<pre class="eval">myForm.target = document.frames[1].name;
</pre>

<h2 id="Specification" name="Specification">Spécification</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-6512890">DOM Level 2 HTML: target</a></p>