JavaScript Window innerWidth and innerHeight Properties


Example

Get the window height and width

var width = window.innerWidth
var height = window.innerHeight