From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/document/origin/index.html | 58 ----------------------------- files/fr/web/api/document/origin/index.md | 58 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 files/fr/web/api/document/origin/index.html create mode 100644 files/fr/web/api/document/origin/index.md (limited to 'files/fr/web/api/document/origin') diff --git a/files/fr/web/api/document/origin/index.html b/files/fr/web/api/document/origin/index.html deleted file mode 100644 index 646f4e1242..0000000000 --- a/files/fr/web/api/document/origin/index.html +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Document.origin -slug: Web/API/Document/origin -tags: - - API - - DOM - - Document - - Propriétés - - origine -translation_of: Web/API/Document/origin ---- -
{{APIRef("DOM")}}{{SeeCompatTable}}
- -

La propriété en lecture seule Document.origin renvoie l'origine du document. Dans la plupart des cas, cette propriété est équivalente à  document.defaultView.location.origin.

- -

Exemples

- -
var origin = document.origin;
-// Sur cette page, renvoie:'https://developer.mozilla.org'
-
-var origin = document.origin;
-// Sur "about:blank", renvoie :'null'
-
-var origin = document.origin;
-// Sur "data:text/html,<b>foo</b>", renvoie :'null'
-
- -

Spécifications

- - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-document-origin', 'Document.origin')}}{{Spec2('DOM WHATWG')}}Définition initiale.
{{SpecName('HTML WHATWG', '#origin:document', 'origin for Document objects')}}{{Spec2('HTML WHATWG')}}Définition initiale.
- -

Compatibilité des navigateurs

- -
{{Compat("api.Document.origin")}}
- -

Voir aussi

- - diff --git a/files/fr/web/api/document/origin/index.md b/files/fr/web/api/document/origin/index.md new file mode 100644 index 0000000000..646f4e1242 --- /dev/null +++ b/files/fr/web/api/document/origin/index.md @@ -0,0 +1,58 @@ +--- +title: Document.origin +slug: Web/API/Document/origin +tags: + - API + - DOM + - Document + - Propriétés + - origine +translation_of: Web/API/Document/origin +--- +
{{APIRef("DOM")}}{{SeeCompatTable}}
+ +

La propriété en lecture seule Document.origin renvoie l'origine du document. Dans la plupart des cas, cette propriété est équivalente à  document.defaultView.location.origin.

+ +

Exemples

+ +
var origin = document.origin;
+// Sur cette page, renvoie:'https://developer.mozilla.org'
+
+var origin = document.origin;
+// Sur "about:blank", renvoie :'null'
+
+var origin = document.origin;
+// Sur "data:text/html,<b>foo</b>", renvoie :'null'
+
+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-document-origin', 'Document.origin')}}{{Spec2('DOM WHATWG')}}Définition initiale.
{{SpecName('HTML WHATWG', '#origin:document', 'origin for Document objects')}}{{Spec2('HTML WHATWG')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ +
{{Compat("api.Document.origin")}}
+ +

Voir aussi

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