diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
| commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
| tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/htmliframeelement/contentdocument/index.html | |
| parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
| download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/htmliframeelement/contentdocument/index.html')
| -rw-r--r-- | files/fr/web/api/htmliframeelement/contentdocument/index.html | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/files/fr/web/api/htmliframeelement/contentdocument/index.html b/files/fr/web/api/htmliframeelement/contentdocument/index.html deleted file mode 100644 index 5580e0abc8..0000000000 --- a/files/fr/web/api/htmliframeelement/contentdocument/index.html +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: HTMLIFrameElement.contentDocument -slug: Web/API/HTMLIFrameElement/contentDocument -browser-compat: api.HTMLIFrameElement.contentDocument -translation_of: 'HTMLIFrameElement.contentDocument' ---- -<p>Si l'<i lang="en">iframe</i> et le document parent de l'<i lang="en">iframe</i> sont de la <a href="/fr/docs/Web/Security/Same-origin_policy">même origine</a>, <code>HTMLIFrameElement.contentDocument</code> retourne un <a href="/fr/docs/Web/API/Document"><code>Document</code></a> (c'est à dire le document actif dans le contexte de navigation imbriqué du cadre). Sinon, il retourne <code>null</code>.</p> - -<h2 id="examples">Exemples</code></h2> - -<pre class="brush: js">var iframeDocument = document.getElementsByTagName("iframe")[0].contentDocument; - -iframeDocument.body.style.backgroundColor = "blue"; -// Cela passe la couleur d'arrière-plan de l'iframe en bleu.</pre> - -<h2 id="specifications">Spécifications</h2> - -<p>{{Specifications}}</p> - -<h2 id="browser_compatibility">Compatibilité des navigateurs</h2> - -<p>{{Compat}}</p> |
