|
Father has also been window.open face to face child also. However, when the sub is also side window.parent.XXX. Baocuo as: window.parent.XXX is null or not an object! Please Zhijiao Thank you master! Be able to take a look at code? The parent page window.open (''open.jsp? City =''strCity ,'''','' width = 252, height = 100, scrollbars = no''); Sub-page open.jspwindow.parent.maplet.clean (); Baocuo is empty or not an object window.parent.maplet! Why? Else there is no problem! window.parent said that the current framework of the parent framework, If the child is not in the framework of the window, then empty, Does not mean the child window and parent window, the relationship between the Is a framework for how to address the relationship between? Window.opener.document.formname.maplet Where formname is the form you have the name of the parent window window.parent.document.formname.maplet.clean (); I open.jsp in accordance with the above code to write is still the same error. Is not a parent, is the opener! window.opener.document.formname.maplet.clean (); Gao Buding try this openerTest1.html content: htmlformname =(Editor:admin) |