setProperty

fun setProperty(property: String, value: String?, priority: String = definedExternally)(source)

MDN Reference