From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/api/window/document/index.html | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/pt-br/web/api/window/document/index.html (limited to 'files/pt-br/web/api/window/document') diff --git a/files/pt-br/web/api/window/document/index.html b/files/pt-br/web/api/window/document/index.html new file mode 100644 index 0000000000..f7cfc4d860 --- /dev/null +++ b/files/pt-br/web/api/window/document/index.html @@ -0,0 +1,56 @@ +--- +title: Window.document +slug: Web/API/Window/document +tags: + - API + - DOM HTML + - NeedsCompatTable + - NeedsExample + - NeedsMarkupWork + - NeedsSpecTable + - Propriedade + - Referencia + - Window +translation_of: Web/API/Window/document +--- +
{{APIRef}}
+ +

Resumo

+ +

Retorna a referência para o documento contido na janela.

+ +
Nota: {{Fx_minversion_inline(3)}} Firefox 3 altera a segurança para documentos de uma janela de modo que apenas o domínio a partir do qual foi localizado possa acessar o documento. Enquanto isso pode quebrar alguns sites existentes, é um movimento feito por ambos Firefox 3 e Internet Explorer 7, e resulta na melhoria de segurança.
+ +

Sintaxe

+ +
doc = window.document
+
+ +

Parâmetros

+ + + +

Exemplo

+ +
<!DOCTYPE html>
+<html>
+<head>
+   <title>Hello, World!</title>
+</head>
+<body>
+
+<script type="text/javascript">
+   var doc = window.document;
+   alert( doc.title);    // alerts: Hello, World!
+</script>
+
+</body>
+</html>
+ +

Especificação

+ + -- cgit v1.2.3-54-g00ecf