Re: Regarding load method.

The load() method will replace the content of the document with the new 
DOM tree, and in doing so the old content of the document should be 
freed in the process (it will become garbage in a GC world, or freed in 
some other way depending on your environment).

Santosh Moholkar wrote:
> Hi,
> I would like to know
> what happens when I call "load" method on an existing
> Document object. The new document is loaded
> that is OK. But what happens to the previous
> contents of the document object. How can I
> free the memory that was previously allocated
> to the document.
> 
> 			Santosh Moholkar.
> 
> 


-- 
jst

Received on Friday, 8 February 2002 23:42:04 UTC