Hi,
I need to find out height of a page including the content that goes beyond the vertical scrolls which is hidden. I have searched google and stackoverflow QA's but those solution don't apply to my situation.
One condition is I cannot change HTML or BODY css. Basically I am trying this out for a firefox extension
All the methods like
offsetHeight, scrollHeight, getComputedValue
didn't work somehow on a website noupe.com. Everytime I tried finding the body's above mentioned property it just gave me 18px even though the page height is more than 4000 px.
Tried jQuery's
$(document).height();
Didn't work too.
This is how I am finding out page height:
var x = window.content;
var pageBody = x.document.getElementsByTagName("body")[0];
var my_pageheight = parseInt(x.document.defaultView.getComputedStyle(pageBody, "").getPropertyValue("height"));
This gives me 18px on noupe.com but WORKS WELL on other websites. Any clue how i can make this work.
Thanks