Proprietà Legend form
Definizione e uso
form
La proprietà restituisce un riferimento al modulo che contiene <legend>.
Questa proprietà restituisce l'oggetto modulo con successo.
Note:Questa proprietà è sola lettura.
Vedi anche:
Manuale HTML:Etichetta <legend> HTML
Esempio
Restituisci l'ID del modulo che contiene l'elemento <legend>:
var x = document.getElementById("myLegend").form.id;
Sintassi
legendObject.form
Dettagli tecnici
Valore di ritorno: |
Riferimento all'elemento del modulo che contiene legend. Se legend non è presente nel modulo, viene restituito null. |
---|
Supporto dei browser
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Supporto | Supporto | Supporto | Supporto | Supporto |