Click here to Skip to main content
15,891,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am working on site where I am using iframes for dynamic html files.
Each html file having own length and my iframe height is fixed.
How can I set auto height for each page coming in iframe?

Umesh Daiya
Web Developer
Bikaner Rajasthan
Posted

1 solution

Why don't you just use AJAX and then load the content of the webpage on a DIV by doing so:
JavaScript
document.getElementById("divID").innerHTML = contentReturned;
 
Share this answer
 
v2

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