jQuery: console-log browser width and height.

console-log browser width and height for debug and development of  jQuery and css media-queries.

jQuery(window).resize(function () {
		var width = jQuery(window).width();
		var height = jQuery(window).height();
		var documentWidth = jQuery(document).width();
		var documentHeight = jQuery(document).height();
		console.log(width);
		console.log(height);
	  })

Leave a Reply

avatar
  Subscribe  
Notify of