replaceChildren method

void replaceChildren(
  1. JSAny nodes
)

The Element.replaceChildren() method replaces the existing children of a Node with a specified new set of children. These can be string or Node objects.

Implementation

external void replaceChildren(JSAny nodes);