Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>The Window Object</h1> <h2>The screenLeft and screenTop Properties</h2> <p id="demo"></p> <script> let x = window.screenLeft; let y = window.screenTop; document.getElementById("demo").innerHTML = "Left: " + x + ", Top: " + y; </script> </body> </html>