"Soren Vejrum" <vejrum@doek.dk> writes:
[color=blue]
> In the meantime I have found a "hack" to circumvent this "error". I can
> replace the iframe body content through "write":
>
> myiframe.contentWindow.document.write('<a href="/index.asp">xxx</a>');
>
> However, I think this is ugly and would prefer to do this through the DOM if
> at all possible.[/color]
It is (almost) DOM.
The "write" method of the HTMLDocument interface is part of DOM 2 HTML
(except that the DOM expects the document stream to have been openend
by the "open" function first).
The "contentWindow" property is not DOM 2, but the "contentDocument"
property is, and is understood by Mozilla and Opera (but not IE, ofcourse).
The "contentWindow" property is understood by Mozilla and IE, but should
be equivalent to "frames['iframeName']" anyway.
/L
--
Lasse Reichstein Nielsen -
lrn@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'