// Available in browsers that support the Window Management API
const screenDetails = await window.getScreenDetails();
// Return the availTop value of the first screen
const screen1AvailTop = screenDetails.screens[0].availTop;ScreenDetailed: availTop property / notebook
ScreenDetailed: availTop 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 availTop value of the current screen
const screenAvailTop = window.screen.availTop;