How to find browser window width / browser window height using jquery

This article was written by in February 26, 2014, & may not be posted on other sites!
Original source url for this article: How to find browser window width / browser window height using jquery

How to find browser window width / browser window height using jQuery. Find out the browser window total width or height using jQuery. This information can then be used to controle other elements.

Find browser window width / height using jQuery:

$(window).height(); // returns height of browser viewport
$(window).width(); // returns width of browser viewport
$(document).height(); // returns height of HTML document
$(document).width(); // returns widtht of HTML document

How to find browser window width / browser window height jquery

Spread the word

Facebooktwittergoogle_pluslinkedinmail

Leave a Reply

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