This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The languagechange event is fired at the global scope object when the user's preferred languages change.
General info
- Specification
- WHATWG HTML Living Standard
- Interface
Event- Bubbles
- No
- Cancelable
- No
- Target
- The default window scope, being
Windowon Web pages andWorkerGlobalScopein Web Workers. - Default Action
- None
Properties
Being of type Event, this event implements the properties of this interface.
Event.targetRead only- Returns an
EventTargetthat is the topmost target in the DOM tree of the event. Event.typeRead only- Returns a
DOMStringrepresenting the type of event, here"languagechange". Event.bubblesRead only- Returns a
Booleanindicating if the event normally bubbles or not. Event.cancelableRead only- Returns a
Booleanindicating if it is possible to cancel the event.
Specification
| Specification | Status | Comment |
|---|---|---|
| WHATWG HTML Living Standard The definition of 'languagechange' in that specification. |
Living Standard | Initial definition |
| HTML5.1 The definition of 'NavigatorLanguage.languages' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 37 | 32 (32) [1] | No support | 24 | No support |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | No support | 32.0 (32)[1] | No support | No support | No support |
[1]In Firefox, the navigator.languages property's value is taken from the intl.accept_languages preference.