Registers an event handler for the specified event. Use this method to register for events that are related to resources, such as when the app's language, scale, or contrast changes.
The name of the event to handle.
The listener (event handler function) to associate with the event.
Set to true to register the listener for the capturing phase; otherwise, set to false to register the listener for the bubbling phase.
Raises an event of the specified type and with the specified additional properties.
The name of the event to raise.
The set of additional properties to attach to the event object.
Retrieves the resource string that has the specified resource identifier.
The resource ID of the string to retrieve.
{ value: string; empty?: boolean; lang?: string; }
An object that can contain these properties: value, empty, lang.
Occurs when the user changes the system's language or contrast, or the scale of the display, or when the user changes any of the items in the current context's qualifier values list. For more info about the current context's qualifier values list, see the Remarks section.
An object that contains information about the event. The detail property of this object contains the following sub-properties: detail.qualifier, detail.changed.
Processes data-win-res attributes on elements and replaces attributes and properties with resource strings.
The element to process. The element and its child elements will be processed. If an element isn't specified, the entire document is processed.
Removes an event listener that the addEventListener method registered.
The name of the event that the event listener is registered for.
The listener (event handler function) to remove.
Set to true to remove the capturing phase listener; set to false to remove the bubbling phase listener.