Gets the locale name (language code, e.g., "en-US", "fr", "de", "ja", etc.) for the composition event, if available; otherwise, the empty string.
Property of dom/CompositionEventdom/CompositionEvent
SyntaxNote: This property is read-only.
var localeName = event.locale;
Return Value
Returns an object of type StringString
The locale of the event.
Examplesfunction getLocale(e) {
var localeString = e.locale;
return localeString;
}
Notes
For trusted events, the locale property is set for keyboard and Input Method Editor (IME) input only. The locale name is set from the default LCID of the thread, en-US
, for example.
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4