jQuery : get the total height of HTML document -
i have seen lot of subjects dealing this, none of helped me. want retrieve using jquery total height of html document. tried many things, max height total height of viewport, never taking business relationship if there vertical scrollbar or not. next screen indicate want :
$(document).height(); // homecoming 898, height of current visible part of page
$(window).height(); // homecoming 881
$("html").height(); // homecoming 898
$("body").height(); // same
$("div#main").height(); // same
$(document).outerheight(); // i'm wondering how can ...
the tests made on firefox , chrome browsers.
i know how utilize jquery, i'm not fluent size related methods. can explain me if it's possible ?
thanks in advance !
edit : apparently, if problem not solved, it's binded weird behaviour of sharepoint. i'm trying document height on sharepoint 2013 page, homecoming viewport height. why microsoft complicate things ?
i think, there need.
http://api.jquery.com/height/
jquery html height
No comments:
Post a Comment