prepend method

void prepend(
  1. JSAny nodes
)

The DocumentFragment.prepend() method inserts a set of Node objects or string objects before the first child of the document fragment. String objects are inserted as equivalent Text nodes.

This method prepends a child to a DocumentFragment. To prepend to an arbitrary element in the tree, see Element.prepend.

Implementation

external void prepend(JSAny nodes);