Latest web development tutorials

atributo title HTML DOM

Document Object Reference Document Object

Definição e Uso

propriedade de título retorna o título atual (elemento title texto HTML) documento.

gramática

document.title


Suporte a navegadores

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Todos os principais navegadores suportam o atributo title


Exemplos

Exemplos

Retorna o título do documento atual:

<html>
<head>
<title>My title</title>
</head>
<body>

文档的标题为:
<script>
document.write(document.title);
</script>

</body>
</html>

tente »


Document Object Reference Document Object