--- title: HTMLFormElement.target slug: Web/API/HTMLFormElement/target translation_of: Web/API/HTMLFormElement/target ---
{{APIRef("HTML DOM")}}

target legge o imposta il contenuto dell'attributo target (per esempio, il frame dove verrĂ  visualizzato l'output del form).

Sintassi

stringa = form.target
form.target =
stringa

Esempio

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

Specifiche

DOM Level 2 HTML: target