execCommand

fun execCommand(
    commandId: String,
    showUI: Boolean = definedExternally,
    value: String = definedExternally
): Boolean
(source)

Platform and version requirements: JS