I can find the size of window, when i resize my window.like this
<script type="text/javascript">
jQuery(window).resize(function () {
var width = jQuery(window).width();
var height = jQuery(window).height();
console.log(width);
console.log(height);
})
</script>
Now i want to get the document size when i resize the window. How can i get the size every time when resize the window.