This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use 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 spec changes.
The languagechange
event is fired at the global scope object when the user's preferred languages change.
Event
Window
on Web pages and WorkerGlobalScope
in Web Workers.Being of type Event
, this event implements the properties of this interface.
Event.target
Read only
EventTarget
that is the topmost target in the DOM tree of the event.Event.type
Read only
DOMString
representing the type of event, here "languagechange"
.Event.bubbles
Read only
Boolean
indicating if the event normally bubbles or not.Event.cancelable
Read only
Boolean
indicating if it is possible to cancel the event.Specification | Status | Comment |
---|---|---|
HTML5.1 The definition of 'NavigatorLanguage.languages' in that specification. | Working Draft | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | 37 | 32 (32) [1] | Not supported | 24 | Not supported |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | Not supported | 32.0 (32)[1] | Not supported | Not supported | Not supported |
[1]In Firefox, the navigator.languages
property's value is taken from the intl.accept_languages
preference.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/languagechange