kotlin-stdlib / kotlin.dom / appendElement appendElement JS 1.1 fun Element.appendElement( name: String, init: Element.() -> Unit): Element Appends a newly created element with the specified name to this element. The element is initialized with the speicifed init function.