WorkerGlobalScope.onlanguagechange

Summary

The onlanguagechange property of the WorkerGlobalScope interface represents an EventHandler to be called when the languagechange event occurs and bubbles through the Worker.

Syntax

self.onlanguagechange = function() { ... };

Example

The following code snippet shows an onlanguagechange handler set inside a worker:

self.onlanguagechange = function() {
  console.log('Your preferred language settings have been changed');
}

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'WorkerGlobalScope.onlanguagechange' in that specification.
Living Standard  

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support4 ?3.5 Yes11.54
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ?40 ?4 Yes5.14.0

See also

The WorkerGlobalScope interface it belongs to.

Document Tags and Contributors

 Contributors to this page: fscholz, teoli, chrisdavidmills, kscarfone
 Last updated by: fscholz,