<html>
<body>
<h1>The Window Object</h1>
<h2>The screenX and screenY Properties</h2>
<button onclick="myFunction()">Open Window</button>
<p id="demo"></p>
<script>
function myFunction() {
const myWin = window.open("", "", "width=200, height=100");
let x = myWin.screenX;
let y = myWin.screenY;
document.getElementById("demo").innerHTML =
"myWin.screenX= " + x + "<br>myWin.screenY= " + y;
}
</script>
</body>
</html>