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