Forum Moderators: open
I Have an small problem.
I Need to get the viewport width and height.
I Tested the following:
Real size without scrollbars:
- Height: 389px
- Width: 614px
----
window.innerHeight & window.innerWidth:
- Opera: H:405 - W:630
- FF: H:405 - W:630
- IE: H: x - W: xdocument.body.clientHeight & document.body.clientWidth:
- Opera: H:389 - W:614
- FF: H:431 - W:598
- IE: H:389 - W:614document.documentElement.clientHeight & document.documentElement.clientWidth:
- Opera: H:571 - W:614
- FF: H:389 - W:614
- IE: H: 0 - W: 0
How can i get the inner height and width without scrollbars from all browsers, without doing an browser detect.