Re: "iframe" and dom problem

June Lee wrote:

Looking into the DOM2 HTML Specification, I read that ...

> 2) Using object insted of iframe has DOM problems in browsers.
> self.document.getElementById("myEmbed").document.lastModified
> : self.document.getElementById("myEmbed").document means
>   document object of "myEmbed" element. it is document object.
> (DOM Level 2, works in IE. not in Mozilla).

... this (document) is not DOM Level 2, neither is ...

> <iframe id="myEmbed" src="embed.html"></iframe>
>  
> I can use below DOM :
> self.document.getElementById("myEmbed").contentWindow.location.href
> : self.document.getElementById("myEmbed").contentWindow is
>   iframe window object. 
> (DOM Level 2, works in IE and Mozilla).

... this (contentWindow) nor ...

> self.document.getElementById("myEmbed").contentWindow.document.lastModified
> : self.document.getElementById("myEmbed").contentWindow.document is
>   document object of iframe window object.
> (DOM Level 2, works in IE and Mozilla).

... this (contentWindow again).

-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)

Received on Friday, 17 December 2004 09:08:59 UTC