From 073e2346197594bb7295b9dfbc56c330915914f1 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Fri, 30 Jul 2021 07:40:08 +0200 Subject: French translation of the HTMLIFrameElement `contentdocument` reference (#1791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * initial translation * Various fixes requested by the reviewer :) * I missed an 'iframe' occurrence… * Slight improvements Co-authored-by: SphinxKnight --- .../htmliframeelement/contentdocument/index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 files/fr/web/api/htmliframeelement/contentdocument/index.html (limited to 'files/fr') diff --git a/files/fr/web/api/htmliframeelement/contentdocument/index.html b/files/fr/web/api/htmliframeelement/contentdocument/index.html new file mode 100644 index 0000000000..7b9d4c9a8e --- /dev/null +++ b/files/fr/web/api/htmliframeelement/contentdocument/index.html @@ -0,0 +1,22 @@ +--- +title: HTMLIFrameElement.contentDocument +slug: Web/API/HTMLIFrameElement/contentDocument +browser-compat: api.HTMLIFrameElement.contentDocument +translation_of: 'HTMLIFrameElement.contentDocument' +--- +

Si l'iframe et le document parent de l'iframe sont de la même origine, HTMLIFrameElement.contentDocument retourne un Document (c'est à dire le document actif dans le contexte de navigation imbriqué du cadre). Sinon, il retourne null.

+ +

Exemples

+ +
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.
+ +

Spécifications

+ +

{{Specifications}}

+ +

Compatibilité des navigateurs

+ +

{{Compat}}

-- cgit v1.2.3-54-g00ecf