insertBefore

fun <T : Node> insertBefore(node: T, child: Node?): T(source)

MDN Reference