开发者

get parent frame height with jQuery

开发者 https://www.devze.com 2023-01-11 15:14 出处:网络
I want to get the height of parent frame with jQuery. It\'s my orginal script var iframeElement = parent.document.getElementById(\'FrmPatient\');

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

It's my orginal script

var iframeElement = parent.document.getElementById('FrmPatient'); 
iframeElement.style.hei开发者_运维百科ght = 170;

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


You could try this:

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


$('FrmPatient').parent().css('height', '170px');
0

精彩评论

暂无评论...
验证码 换一张
取 消