Menu
Ok this is so confusing, can someone clarify this for me.
jQuery(function() {
alert(window.innerHeight); // this gives me 950px
alert(document.body.offsetHeight); // this gives me 689px
})
but then if i change the script to this it changes my values
jQuery(function() {
winh = window.innerHeight;
bodyh = document.body.offsetHeight;
alert(winh); // 950px
alert(bodyh); // this gives me 687px WHY?????
})
when i put it into a variable my result changes. Why????
the value changes by 2px
any ideas?????
Thanks for the help!!!