Objeto Title de HTML DOM

Objeto Title

El objeto Title representa el elemento HTML <title>.

Acceder al objeto Title

Puede acceder al elemento <title> utilizando getElementById():

var x = document.getElementById("myTitle");

Prueba por ti mismo

Crear el objeto Title

Puede crear un elemento <title> utilizando el método document.createElement():

var x = document.createElement("TITLE");

Prueba por ti mismo

Atributos del objeto Title

Atributos Descripción
text Establece o devuelve el texto del título del documento.

Atributos y eventos estándar

El objeto Title admite estándaresAtributosyEventos.

Páginas relacionadas

Manual de referencia de HTML:Etiqueta <title> de HTML