A generic Event
.
Structure of content on the web
Interfaces for building web applications
Scan a website for free
caches
credentialless
Experimental
devicePixelRatio
documentPictureInPicture
Experimental
event
Deprecated
external
Deprecated
fence
Experimental
fullScreen
Non-standard
innerWidth
launchQueue
Experimental
locationbar
mozInnerScreenX
Non-standard
mozInnerScreenY
Non-standard
navigation
Experimental
orientation
Deprecated
originAgentCluster
Experimental
performance
screenLeft
scrollbars
scrollMaxX
Non-standard
scrollMaxY
Non-standard
sessionStorage
sharedStorage
Experimental
status
Deprecated
trustedTypes
atob()
back()
Non-standard
Deprecated
blur()
Deprecated
captureEvents()
Deprecated
clearImmediate()
Non-standard
Deprecated
confirm()
dump()
Non-standard
find()
Non-standard
forward()
Non-standard
Deprecated
getDefaultComputedStyle()
Non-standard
getScreenDetails()
Experimental
moveTo()
prompt()
queryLocalFonts()
Experimental
releaseEvents()
Deprecated
requestFileSystem()
Non-standard
Deprecated
scroll()
scrollByLines()
Non-standard
scrollByPages()
Non-standard
setImmediate()
Non-standard
Deprecated
setResizable()
Non-standard
Deprecated
showDirectoryPicker()
Experimental
showModalDialog()
Non-standard
Deprecated
showOpenFilePicker()
Experimental
showSaveFilePicker()
Experimental
sizeToContent()
Non-standard
webkitConvertPointFromNodeToPage()
Non-standard
Deprecated
webkitConvertPointFromPageToNode()
Non-standard
Deprecated
beforeprint
cut
error
hashchange
messageerror
orientationchange
Deprecated
pageswap
resize
scrollsnapchange
Experimental
scrollsnapchanging
Experimental
unload
Deprecated
vrdisplayactivate
Non-standard
Deprecated
vrdisplayconnect
Non-standard
Deprecated
vrdisplaydeactivate
Non-standard
Deprecated
vrdisplaydisconnect
Non-standard
Deprecated
vrdisplaypresentchange
Non-standard
Deprecated
addEventListener()
, or set an event handler property.
addEventListener("languagechange", (event) => {});
onlanguagechange = (event) => {};
A generic Event
.
In addition to the Window
interface, the event handler property onlanguagechange
is also available on the following targets:
You can use the languagechange
event in an addEventListener
method:
window.addEventListener("languagechange", () => {
console.log("languagechange event detected!");
});
Or use the onlanguagechange
event handler property:
window.onlanguagechange = (event) => {
console.log("languagechange event detected!");
};
Specification |
---|
HTML # handler-window-onlanguagechange |
BCD tables only load in the browser