Add child before other element
Methods
-
addChildBefore(child, marker)
-
Add child before other element If marker element is undefined child is appended at end
Parameters:
Name Type Description childHTMLElement child to add markerHTMLElement | undefined marker Returns:
child- Type
- HTMLElement | null