I have a HTML string
Hello world
and I wan
The innerHTML
is a bit tricky especially in IE, where elements like thead
are read-only and cause a lot of trouble.
Based on the documentation on msdn you might try documentMode
which provides a innerHTML
property.
myIFrame = myIFrame.contentWindow ||
myIFrame.contentDocument.document ||
myIFrame.contentDocument;
myIFrame.document.open();
myIFrame.document.write('Your HTML Code');
myIFrame.document.close();
this might only work in IE.