I want to calculate height of browser using jquery so that i can set my another div element accordingly . So what do I have to do in order to make it work???
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is
.height()method present in the jquery which will give you a height of the different elementto find height of the browser or your HTML document than write
$(window).height(); // returns height of browser viewport$(document).height(); // returns height of HTML document