English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
titleAtributo que configura o devuelve el título actual del documento (el texto en el elemento <title>).
Devolver atributo de título:
document.title
Configurar atributo de título:
document.title = newTitle
var x = document.title;Prueba y mira‹/›
Todos los navegadores soportan completamente el atributo title:
Atributo | |||||
title | Es | Es | Es | Es | Es |
Valor | Descripción |
---|---|
newTitle | Nuevo título del documento |
Valor devuelto: | Cadena que representa el título del documento |
---|---|
Versión de DOM: | DOM 2Nivel |