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/node/lastchild/index.md | 66 ++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 files/fr/web/api/node/lastchild/index.md (limited to 'files/fr/web/api/node/lastchild/index.md') diff --git a/files/fr/web/api/node/lastchild/index.md b/files/fr/web/api/node/lastchild/index.md new file mode 100644 index 0000000000..37963f8473 --- /dev/null +++ b/files/fr/web/api/node/lastchild/index.md @@ -0,0 +1,66 @@ +--- +title: element.lastChild +slug: Web/API/Node/lastChild +tags: + - API + - DOM + - Enfant + - Noeuds + - Propriétés +translation_of: Web/API/Node/lastChild +--- +

{{APIRef("DOM")}}

+ +

La propriété en lecture seule Node.lastChild renvoie le dernier enfant du noeud. Si son parent est un élément, l'enfant est généralement un noeud élément, texte ou commentaire. Elle renvoie null s'il n'y a aucun enfant.

+ +

Syntaxe

+ +
var childNode = node.lastChild;
+
+ +

 

+ +

Exemple

+ +

 

+ +
var tr = document.getElementById("row1");
+var corner_td = tr.lastChild;
+ +

Spécification

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('DOM WHATWG', '#dom-node-lastchild', 'Node.lastChild')}}{{Spec2('DOM WHATWG')}}Pas de changement
{{SpecName('DOM3 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM3 Core')}}Pas de changement
{{SpecName('DOM2 Core', 'core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM2 Core')}}Pas de changement
{{SpecName('DOM1', 'level-one-core.html#ID-61AD09FB', 'Node.lastChild')}}{{Spec2('DOM1')}}Définition initiale
+ +

Compatibilité des navigateurs

+ +

{{Compat("api.Node.lastChild")}}

\ No newline at end of file -- cgit v1.2.3-54-g00ecf