I’m using an iframe in my page to display an embedded video.
The issue I have is that I already have the embed code I need, and can I render it directly into the iframe when I load the full page.
However, the iframe always seems to attempt to load a src attribute.
I’d like the iframe to keep the content I provide in it on render:
...
<div class="iframeWrapper">
<iframe>
<html>
<body>
<div>I already know this is the iframe content I want.</div>
</body>
</html>
</iframe>
</div>
...
The basic premise is that I’d prefer not to have to make a second request for the contents of the iframe, when I already know what the contents are supposed to be the first time through.
Is this even possible?
Thanks.
Edit: The iframe is purely for sandboxing. And not currently negotiable.
http://jsfiddle.net/EcusH/