Definitely they are not the same.

the window height is the viewport height, the document height is the
body height, the contents. Any website with jQuery (try jquery.com)
should show you the difference.

They will only be the same if the page's content is smaller than the
window size.

- ricardo

On Oct 21, 8:48 pm, tallvanilla <[EMAIL PROTECTED]> wrote:
> No, they're exactly the same. Try it and let me know if you get
> different results.
>
> JR
>
> On Oct 21, 11:25 am, Ryura <[EMAIL PROTECTED]> wrote:
>
> > Actually, it seems that the document's height is the entire page's
> > height, while the window height is only the viewing height(ie: what
> > you see at that given time).
>
> > On Oct 21, 1:00 pm, tallvanilla <[EMAIL PROTECTED]> wrote:
>
> > > Good question. No difference. Both should give you the exact same
> > > result every time.
>
> > > JR
>
> > > On Oct 21, 1:38 am, jey jey <[EMAIL PROTECTED]> wrote:
>
> > > > what is difference between $(document).height() and $
> > > > (window).height() ?

Reply via email to