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