Search code examples
javascriptjqueryparentframe

get parent frame height with jQuery


I want to get the height of parent frame with jQuery.

It's my orginal script

var iframeElement = parent.document.getElementById('FrmPatient'); 
iframeElement.style.height = 170;

I want to change this script to jQuery style. How to get that?


Solution

  • You could try this:

    $("#FrmPatient", parent.document).css("height", 170);