FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

<iframe> Trouble Saver

 


qtpie_32
Just for alot of people out there this is something that caused me HOURS of frustration, I think on one of my first sites I used Iframes and half the site never worked for this very reason. so first, my story.

I was making a site, I learned about iframes, and I thought it was neat, like a little object similar to <img>, so I used it almost the same. The code resulting was probably along the lines of

Code:
<iframe src = "main.html" width = "400" height = "300">


and then everything after the iframe DISSAPEARED! I wondered why, its an object just like IMG isnt it? Well apparently not. The correct code is

Code:
<iframe src = "main.html" width = "400" height = "300"></iframe>


Why? I don't know. But I just thought someone might benifit from my mistake as I did. Smile
niranvv
Thanks for the info dude!
Cool
yjwong
The same thing goes for the <script> tag in Internet Explorer as well. If this happens at the <head> section, then the entire contents of the page won't be displayed. If this happens somewhere in the <body> tag, the page will be partially displayed. This, however, doesn't happen in Opera or Firefox.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.