blob: c5635556ba2711472b4db173dd4aced0888066fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
---
title: Window.document
slug: Web/API/Window/document
tags:
- API
- HTML DOM
- Propriété
- Reference
- Window
translation_of: Web/API/Window/document
---
{{APIRef}}
**`window.document`** renvoie une référence au [document](/en-US/docs/Web/API/document) contenu dans la fenêtre.
## Exemple
```js
console.log(window.document.title);
```
## Spécifications
| Spécifications | Statut | Commentaires |
| ---------------------------------------------------------------------------------------------------- | -------------------------------- | ------------ |
| {{SpecName('HTML WHATWG', '#dom-document-2', 'Window.document')}} | {{Spec2('HTML WHATWG')}} | |
| {{SpecName('HTML5 W3C', 'browsers.html#dom-document-0', 'Window.document')}} | {{Spec2('HTML5 W3C')}} | |
## Compatibilité des navigateurs
{{Compat("api.Window.document")}}
|