ziche
asked on
assiging quoted html to a frame
is there any way of assigning quoted html rather than a link to an external document, to a frame or iframe?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Would about:blank be supported by NS/others?
-r-
-r-
I tested it in IE6 and Firefox. No reason it should not work on any browser that supports iframe.
Cd&
Cd&
Glad we could help. Thanks for the A. :^)
Cd&
Cd&
Using javascript you would be able to open a document, write content in it, and close it.
From bare head, it should be something like:
<script type="text/javascript">
function newDocWithHTML(frame, html)
{
f = document.frames[frame];
f.document.open();
f.document.write(html);
f.document.close();
}
</script>
<div id="mysourcehtml">
bla <b>bla</b> bla
</div>
<button onclick="newDocWithHTML('m
<iframe name="myiframe"></iframe>