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