Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to resize the iframe height on cient event when it is open???


I have a anchor tag,on clicking the anchor tag , the iframe in modal pop up should reszize. the anchor tag is in the iframe itself...


any suggestion is appreciated.
Posted
Updated 7-Nov-12 0:21am
v2

Resize your Modal popup Height instead of iframe. The iframe automatically will
adjust in it. You can get the modal pop up object at client side by the iframe object as

JavaScript
iframe1.contentWindow.document.getElementById('modalpopupid').style.height='100px';
 
Share this answer
 
v2
Comments
[no name] 7-Nov-12 7:20am    
thank u
 
Share this answer
 
Comments
[no name] 7-Nov-12 7:20am    
thank u
jim lahey 7-Nov-12 7:22am    
If it helped you can always mark it as the answer or rate it
[no name] 7-Nov-12 7:33am    
ohhh.k

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900