In a javascript function I use document.body.clientHeight to get the height of the body. Now depending on the mode IE8 is in (i.e quirks or standard), the value is different.
Example
In quirks, document.body.clientHeight = 800px
In standard, document.body.clientHeight = 650px
Hope I’ve made sense.
Please help.
Quirks mode and Standards mode return value is inconsistent. Since you tagged it as jQuery, just use
$('body').height()or$(window).height()depending on what you need… it fixes it internally so you don’t have to type this: