START HERE

jQuery: console-log browser width and height.

Avatar for Giovanni De Carlo Giovanni De Carlo 0 comment

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);
	  })
Avatar for Giovanni De Carlo

Giovanni De Carlo

See all posts »
Comments

Leave a Reply

Your email address will not be published. Required fields are marked *