Don Sky Don Sky - 1 year ago 88
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 Source
$('.container div').outerHeight();


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

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download