A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Node/lastChild below:

lastChild ยท WebPlatform Docs

lastChild Summary

Gets a reference to the last child in the childNodes collection of an object.

Property of dom/Nodedom/Node

Syntax
var result = element.lastChild;
element.lastChild = value;
Examples

The following code example implements the lastChild property to obtain a reference to the last child element of an object.

<body>
<ul id = "oList">
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
<script type="text/javascript">
var olastChild = oList.lastChild;
</script>
<body>
Usage
 Used to remove and append nodes to user lists and tables.
Syntax

var last_child = element.lastChild

Standards information Related specifications
DOM Level 2 Core
Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4