Oggetto titolo DOM HTML
Titolo oggetto
L'oggetto Title rappresenta un elemento HTML <title>.
Accedi a un oggetto titolo
Puoi accedere a un elemento <title> usando getElementsByTagName():
Esempio
var x = document.getElementsByTagName("TITLE")[0];
Crea un oggetto titolo
Puoi creare un elemento <title> usando il metodo document.createElement():
Esempio
var x = document.createElement("TITLE");
Proprietà dell'oggetto del titolo
Property | Description |
---|---|
text | Sets or returns the text of the document's title |
Proprietà ed eventi standard
L'oggetto Title supporta anche le proprietà e gli eventi standard .
Pagine correlate
Tutorial HTML: Testa HTML
Riferimento HTML: tag HTML <titolo>