Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-20-2012, 06:45 AM #1
- Join Date
- Dec 2009
- Charlotte, NC
- Thanked 2 Times in 2 Posts
If I have a <div id="mydiv"></div>
and I use
iframe = document.createElement("iframe"); document.getElementById("mydiv").appendChild(iframe)
or does it append <div id="mydiv"> <iframe> </div>
01-20-2012, 07:22 AM #2
Did you try it, say with Firebug or another debugger present?
a *child* is indeed *INSIDE* the parent that appended it.
SOCode:<div id="mydiv"> <iframe /> </div>
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.