--Viewport--

Width Methods

$(window).width():

document.documentElement.clientWidth:

window.innerWidth:

window.outerWidth:

Height Methods

$(window).height():

document.documentElement.clientHeight:

window.innerHeight:

window.outerHeight:

--Device--

Width Methods

window.screen.width:

window.screen.availWidth:

Height Methods

window.screen.height:

window.screen.availHeight:

--Document--

Width Methods

$(document).width():

document.body.clientWidth:

document.body.offsetWidth:

document.body.scrollWidth:

document.documentElement.clientWidth:

document.documentElement.offsetWidth:

document.documentElement.scrollWidth:

Height Methods

$(document).height():

document.body.clientHeight:

document.body.offsetHeight:

document.body.scrollHeight:

document.documentElement.clientHeight:

document.documentElement.offsetHeight:

document.documentElement.scrollHeight: