attributeChangedCallback

abstract external fun attributeChangedCallback(name: String, oldValue: JsAny?, newValue: JsAny?)(source)

MDN Reference