HTML DOM TitleObjeto


Objeto Title

El objeto Title representa un elemento HTML <title>.

Acceder al objeto Title

Puedes usar getElementsByTagName() para acceder al elemento <title>:

var x = document.getElementsByTagName("TITLE")[0]; Pruébalo

Crear un objeto Title

Puedes usar la función document.createElement() para crear un elemento <title>:

var x = document.createElement("TITLE"); Pruébalo

Propiedades del objeto Title

Propiedades Description
text Establece o devuelve la información de texto del elemento title del documento.

Propiedades y eventos estándar

El objeto Title admite los estándaresPropiedadesyEventos。


Artículos relacionados

Tutorial de HTML:Cabecera HTML

Manual de referencia de HTML:Etiqueta HTML <title>

Otras extensiones