Don Sky Don Sky - 4 months ago 8
jQuery Question

Check page height with jquery

Is there way to check page height?

Like If I have

container div
and my contents goes of
100% height
.
I need to check full height of that container div.

Like if it is
100% + more 400px
I want to add something next to that div.

Answer
$('.container div').outerHeight();

codepen-http://codepen.io/nagasai/pen/XKZgyq

Add if condition for that value var x = $('.container div').outerHeight();

Update x ,onresize check x value greater than x+400px