I have a call like this:
$(\"#ContextMenuModal\").height($(\"body\").height());
However $(\"body\").height() returns undefined
$(\"body\").height()
Use this-
$("body").css("height")
well i will say jquery is not needed-
this.style.height;//it will not work if you add it as inline js.