prepend method

void prepend(
  1. JSAny nodes
)

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

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

Implementation

external void prepend(JSAny nodes);