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()
var height = document.body.clientHeight; var width = document.body.clientWidth;
Check: this article for better explanation.