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/head/index.html | 69 ------------------------------- files/fr/web/api/document/head/index.md | 69 +++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 69 deletions(-) delete mode 100644 files/fr/web/api/document/head/index.html create mode 100644 files/fr/web/api/document/head/index.md (limited to 'files/fr/web/api/document/head') diff --git a/files/fr/web/api/document/head/index.html b/files/fr/web/api/document/head/index.html deleted file mode 100644 index ef80950d76..0000000000 --- a/files/fr/web/api/document/head/index.html +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: document.head -slug: Web/API/Document/head -tags: - - DOM - - Document - - HTML5 -translation_of: Web/API/Document/head ---- - -

Retourne l'élément {{HTMLElement("head")}} du document courant. S'il y a plus d'un élément <head>, le premier est retourné.

- -

Syntaxe

- -
var objRef = document.head;
-
- -

Exemple

- -
// en HTML: <head id="my-document-head">
-var aHead = document.head;
-
-alert(aHead.id); // "my-document-head";
-
-alert( document.head === document.querySelector("head") ); // true
-
- -

Notes

- -

document.head est en lecture seule. Essayer d'assigner une valeur à cettre propriété échouera en silence ou lancera une TypeError si le mode strict d'ECMAScript est activé dans un navigateur Gecko.

- -

Spécifications

- - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('HTML5.1','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5.1')}}
{{SpecName('HTML5 W3C','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML WHATWG','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML WHATWG')}}Initial definition.
- -

Compatibilité des navigateurs

- -

{{Compat("api.Document.head")}}

- -

Voir aussi

- - diff --git a/files/fr/web/api/document/head/index.md b/files/fr/web/api/document/head/index.md new file mode 100644 index 0000000000..ef80950d76 --- /dev/null +++ b/files/fr/web/api/document/head/index.md @@ -0,0 +1,69 @@ +--- +title: document.head +slug: Web/API/Document/head +tags: + - DOM + - Document + - HTML5 +translation_of: Web/API/Document/head +--- + +

Retourne l'élément {{HTMLElement("head")}} du document courant. S'il y a plus d'un élément <head>, le premier est retourné.

+ +

Syntaxe

+ +
var objRef = document.head;
+
+ +

Exemple

+ +
// en HTML: <head id="my-document-head">
+var aHead = document.head;
+
+alert(aHead.id); // "my-document-head";
+
+alert( document.head === document.querySelector("head") ); // true
+
+ +

Notes

+ +

document.head est en lecture seule. Essayer d'assigner une valeur à cettre propriété échouera en silence ou lancera une TypeError si le mode strict d'ECMAScript est activé dans un navigateur Gecko.

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('HTML5.1','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5.1')}}
{{SpecName('HTML5 W3C','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML WHATWG','dom.html#dom-document-head','Document.head')}}{{Spec2('HTML WHATWG')}}Initial definition.
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.Document.head")}}

+ +

Voir aussi

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