Skip to content

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);
	  })