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

La propriété **`HTMLFormElement.target`** représente la cible de l'action (i.e., le cadre de destination dans lequel produire le résultat).

## Syntaxe

    string = form.target
    form.target = string

## Exemple

    myForm.target = document.frames[1].name;

## Spécification

[HTML 5, Section 4.10.19.6, Form submission](http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method)

[DOM Level 2 HTML: target](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-6512890)