WebPublisher/JavaScript & jQuery

[javaScript] 브라우저의 높이값, 너비값 가져오기

amanda 2024. 1. 30. 17:52

브라우저의 높이값, 너비값

var documentHeight = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight);
var documentWidth = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth);