How to get document height and width in pure javascript i.e without using jquery. I know about $(document).height() and $(document).width(), bu
$(document).height()
$(document).width()
This is a cross-browser solution:
var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;