Hey guys,
I've been messing with iframes all day now, and they're driving me crazy. I'm trying to make the iframe automatically adjust to its content, but it's not working. None of the scripts I found on Google made it work.
I have an iframe on my parent page, that contains dynamic content. When you go to the website, the iframe opens a page with a div tag that's 335px tall. When you click a link on the parent page, the content of the iframe changes and it opens another page, this time containing a div that's only 100px tall.
So what I want is that the iframe automatically shrinks/grows with the content of the page it displays. Question is: how? I have very little experience with javascript. So far I've been literally copying code from various sites, not knowing what they're saying or doing. I'm making my website this way, because I don't want to make two seperate websites for desktop and mobile. Now I only have to make the 'shell' around the content of my site.
If anybody could tell me how to make the iframe adjust autmatically, I'd be very thankful
Here it is (you'll immediately see the problem):
http://www.kljhamme.be/redalert/LEVLS/