An iframe is used in the project to process the page before page Jump. during runtime, it is found that the memory of IE increases by about 3 m after the IFRAME is passed and the page is closed. The investigation shows that the IFRAME is not released, thereforeCodeModified:
<Body style = "margin-left: 0px; margin-top: 0px; margin-Right: 0px; margin-bottom: 0px;" onUnload = "winclose ()">
<IFRAME id = "frame1" width = "100%" Height = "100%" frameborder = No marginwidth = 0 marginheight = 0 scrolling = auto allowtransparency = true> </iframe>
<SCRIPT type = "text/JavaScript">
Document. getelementsbytagname ("iframe") [0]. src = Window. dialogarguments ["url_iframe"];
Document. Title = Window. dialogarguments ["modeldialogtitle"]! = NULL? Window. dialogarguments ["modeldialogtitle"]: "";
Function winclose ()
{
OBJ = Document. getelementbyid ("frame1 ");
OBJ. src = "javascript: false ";
OBJ. removenode (true );
OBJ = NULL
Collectgarbage ();
}
</SCRIPT>