Passing HTML Code to an iframe?
Posted: Wed Mar 24, 2010 7:20 pm
I have the following chunk of code:
I have a script that generates some HTML code which is saved as string variable "content" and I'd like to display that code in this iframe. Is that possible? Or can an iframe only be used to access a URL?
Thanks
Code: Select all
preload = new Element('iframe', {
'src': URL,
'id': mediaId,
'width': mediaWidth,
'height': mediaHeight,
'allowtransparency': 'true',
'frameborder': 0
});Thanks