We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The languagechange event is fired at the global scope object when the user's preferred languages change.

General info

HTML Living Standard
The default window scope, being Window on Web pages and WorkerGlobalScope in Web Workers.
Default Action


Being of type Event, this event implements the properties of this interface.

Event.target Read only
Returns an EventTarget that is the topmost target in the DOM tree of the event.
Event.type Read only
Returns a DOMString representing the type of event, here "languagechange".
Event.bubblesRead only
Returns a Boolean indicating if the event normally bubbles or not.
Event.cancelableRead only
Returns a Boolean indicating if it is possible to cancel the event.


Specification Status Comment
HTML Living Standard
The definition of 'languagechange' in that specification.
Living Standard Initial definition
HTML 5.1
The definition of 'NavigatorLanguage.languages' in that specification.
Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

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.

See also


 このページの貢献者: freaktechnik, realityking, teoli, ziyunfei
 最終更新者: freaktechnik,