<!DOCTYPE html>
<html>
<head>
<script>
function myFunction() {
var myWindow = window.open("", "myWin");
myWindow.document.write("<p>This is 'myWin'");
myWindow.document.write("<br>ScreenLeft: " + myWindow.screenLeft);
myWindow.document.write("<br>ScreenTop: " + myWindow.screenTop + "</p>");
}
</script>
</head>
<body>
<button onclick="myFunction()">Open "myWin"</button>
</body>
</html>