const screenDetails = await window.getScreenDetails();
// Return the label of the first screen
const screen1Label = screenDetails.screens[0].label;ScreenDetailed: label property / notebook
ScreenDetailed: label property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.