Oggetto HTML DOM Li
Oggetto Li
L'oggetto Li rappresenta un elemento HTML <li>.
Accedi a un oggetto Li
Puoi accedere a un elemento <li> usando getElementById():
Esempio
var x = document.getElementById("myLi");
Crea un oggetto Li
Puoi creare un elemento <li> usando il metodo document.createElement():
Esempio
var x = document.createElement("LI");
Proprietà dell'oggetto Li
Property | Description |
---|---|
value | Sets or returns the value of the value attribute of a list item |
Proprietà ed eventi standard
L'oggetto Li supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <li>