Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

prepend

Description

The prepend of ParentNode for JS inserts nodes before the first child of the node, while replacing the strings in the nodes with equivalent text nodes.

Syntax

node.prepend(nodes)

Parameters

nodes

Objects that implement Node. Nodes participate in a tree, which is known as the node tree.

Examples

1

2

3

4

append

children

firstElementChild

lastElementChild

querySelector

querySelectorAll

replaceChildren

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu