Click to See Complete Forum and Search --> : Creating Empty IFRAME


Vic
08-22-2005, 11:03 PM
I want to place an <IFRAME> element in my web page, but initially I don't want to display any content (this will be managed through js later). Is it valid NOT to specify SRC attribute? Or is there a default keyword that can be used in SRC to designate a blank page?

cbstudio
08-22-2005, 11:38 PM
i don't think you can designate a blank page, but i may be wrong. And it's definately not valid not to specify a src. So i think your best bet would be to simply creat a page with nothing on it and set it as the src...

Hope i helped.

tabzter
08-25-2005, 01:29 AM
Yes you can specify an <iframe> without a source and this would be totally empty aswell, as it defaults to a blank page.
e.g.

<html>
...
<iframe name="myFrame"></iframe>
<a href="something.html" target="myFrame">
...
</html>

This would initially show a blank page in the IFRAME but when the link is pressed then something.html is loaded into the IFRAME