outerHeight 예제
<button onclick="homzzang()">클릭</button> <p id="demo"></p> <script> function homzzang() { var w = window.outerWidth; var h = window.outerHeight; document.getElementById("demo").innerHTML = "Width: " + w + "<br>Height: " + h; } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
var w = window.outerWidth;
var h = window.outerHeight;
document.getElementById("demo").innerHTML = "Width: " + w + "<br>Height: " + h;
}
</script>
결과보기