Oggetto Legend DOM HTML
Oggetto Legend
L'oggetto Legend rappresenta l'elemento HTML <legend>.
Accesso all'oggetto Legend
Puoi accedere all'elemento <legend> utilizzando getElementById():
var x = document.getElementById("myLegend");
Creazione dell'oggetto Legend
Puoi creare l'elemento <legend> utilizzando il metodo document.createElement():
var x = document.createElement("LEGEND");
Proprietà dell'oggetto Legend
Proprietà | Descrizione |
---|---|
form | Restituisce un riferimento al modulo che contiene la legenda. |
Pagine correlate
Manuale di riferimento HTML:Etichetta <legend> HTML
Manuale di riferimento HTML:Etichetta <fieldset> HTML