A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/CompositionEvent/locale below:

locale ยท WebPlatform Docs

locale Summary

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

Syntax

Note: This property is read-only.

var localeName = event.locale;
Return Value

Returns an object of type StringString

The locale of the event.

Examples
function 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.

See also Related pages Attributions

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