Skip to content Skip to sidebar Skip to footer

Set Width To Iframe's Parent Div Tag

I have an iframe within a div(as popup) whose height and width can be variable.I tried to set the height and width in all possible ways but I was not succeeded. I am unable to und

Solution 1:

If I understand your problem correctly, you have to set the "irmNPopupContent" height and width first of setting the iframe src. Start your script with: $('#irmNPopupContainer').css({width:_width+"px",height:_height+"px"});

Look at this jsbin: jsbin.com/oxemet/4

Post a Comment for "Set Width To Iframe's Parent Div Tag"