Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

languagechange

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

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.

General info

Specification
HTML5.1
Interface
Event
Bubbles
No
Cancelable
No
Target
The default window scope, being Window on Web pages and WorkerGlobalScope in Web Workers.
Default Action
None

Properties

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

Specification Status Comment
HTML5.1
The definition of 'NavigatorLanguage.languages' in that specification.
Working Draft Initial definition.

Browser compatibility

Help improve compatibility tables by filling out this 11 question survey.

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.

See also

문서 태그 및 공헌자

 이 페이지의 공헌자: realityking, teoli, ziyunfei
 최종 변경: realityking,