4

I know we get the screen size using screen.height and screen.width. I am interested in knowing how to find the usable screen area using Javascript. This is like screen height minus address bar height minus toolbar etc.

0

2 Answers 2

6

For most browser you can read window.innerWidth and window.innerHeight, for Internet Explorer its document.documentElement.clientWidth and document.documentElement.clientHeight, I think...

Sign up to request clarification or add additional context in comments.

2 Comments

ah, I'm just paranoid because of traumatic experiences with IE6 :-D
@ZeroPage: It's ok, IE6 is dead, and is never coming back.
3

Use window.innerHeight and window.innerWidth

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.