How do I get the current height and width of the available space in the browser as it is open.
I don’t want the height of the total document, just what’s visible on the screen.
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.
You can take a look at this blog post to see the method.
and in short in give that code
also have to be noted that most of js framework (jquery, ext, prototype) would provide a function for doing that (IMHO).
in jQuery: