pageHeight = document.body.scrollHeight

pageWidth = document.body.scrollWidth;

windowWidth = window.innerWidth

windowHeight = window.innerHeight

screenWidth =  screen.width;

screenHeight = screen.height;

 

 

출처: https://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window

반응형

+ Recent posts