In fact, while opening the subform , we can also assign values to elements of the subform, because the window.open function will also return a reference to the subform, so FatherPage.htm can be modified to:
This alone is not enough. When closing the child form, the child variable of the parent form must also be cleared. Otherwise, after opening the child form Once closed, it cannot be reopened: