I have a call like this:
$("#ContextMenuModal").height($("body").height());
However $("body").height() returns undefined when I view it in Firebug.
What would cause jQuery to return undefined for the body height?
I am using jQuery 1.4.1.
Edit:
This is inside an iFrame
Simply use
and / or
instead $(‘body’).height()
To expand a bit,
As bažmegakapa points out, there is a slight difference, albeit a few pixels. The true height of the body can be calculated by subtracting the body offset from the document height (like I mentioned above):