Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:

How will i set the height when i click the link of the page inside the iframe. how will i dynamically change the height of iframe according to the content when a link is clicked.

Sergey Alexandrovich Kryukov 14-Feb-12 0:53am    
This is not so easy, and the results hardly can be reliable and cross-browser. So, are you sure you really need iFrame? What's the goal and requirements?
Jagmohan Bodra 21-Feb-12 2:43am    
I want this in cross-domain. Yes i m going to use iFrame where i want to show different domain contents. and when i click the contents(eg. links) inside the iframe, the iframe's height gets dynamically changed

1 solution

Share this answer
Jagmohan Bodra 21-Feb-12 2:44am    
does it works, when m working with cross-domain content..????
Career Web Helper 2-Mar-12 5:02am    
nice link...
Anuja Pawar Indore 2-Mar-12 5:05am    
Thanks Rocking

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