// Available in browsers that support the Window Management API
const screenDetails = await window.getScreenDetails();
// Return the absolute left value of the first screen
const screen1Left = screenDetails.screens[0].left;ScreenDetailed: left property / notebook
ScreenDetailed: left property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
// Available in Firefox
// Return the absolute left value of the current screen
const screenLeft = window.screen.left;