screenTop 예제
<script> function homzzang() { var hzWin = window.open("", "hzWin"); hzWin.document.write("<p>홈짱닷컴 Homzzang.com"); hzWin.document.write("<br>ScreenLeft: " + hzWin.screenLeft); hzWin.document.write("<br>ScreenTop: " + hzWin.screenTop + "</p>"); } </script> </head> <body> <button onclick="homzzang()">클릭</button> 결과보기
<script>
function homzzang() {
var hzWin = window.open("", "hzWin");
hzWin.document.write("<p>홈짱닷컴 Homzzang.com");
hzWin.document.write("<br>ScreenLeft: " + hzWin.screenLeft);
hzWin.document.write("<br>ScreenTop: " + hzWin.screenTop + "</p>");
}
</script>
</head>
<body>
<button onclick="homzzang()">클릭</button>
결과보기