javascript - get parent frame height with jQuery - Stack Overflow

I want to get the height of parent frame with jQuery.It's my orginal scriptvar iframeElement = par

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?

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?

Share Improve this question asked Aug 11, 2010 at 7:08 Pyae Phyoe SheinPyae Phyoe Shein 13.8k47 gold badges152 silver badges243 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 3

You could try this:

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745408301a4626414.html

相关推荐

  • javascript - get parent frame height with jQuery - Stack Overflow

    I want to get the height of parent frame with jQuery.It's my orginal scriptvar iframeElement = par

    5小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信