MDN self-hosted library · e01.org

WorkerGlobalScope: languagechange event

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
self.addEventListener("languagechange", () => {
  console.log("languagechange event detected!");
});
js
self.onlanguagechange = (event) => {
  console.log("languagechange event detected!");
};