insertAdjacentElement method

Element insertAdjacentElement(
  1. String where,
  2. Element element
)

Inserts element into the DOM at the specified location.

To see the possible values for where, read the doc for insertAdjacentHtml.

See also:

Implementation

Element insertAdjacentElement(String where, Element element) =>
    throw UnsupportedError(
        'insertAdjacentElement() is not available outside a browser context.');