if (
element.localName === "browser" &&
element.namespaceURI ===
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
) {
// this is a XUL browser
}Element: namespaceURI property / notebook
Element: namespaceURI property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.