1> the parent form is usedWindow. Open(URL, name, feather.
Call the parent form function: window. opener. Fun ();
Call the parent form object: delete‑opener.doc ument. getelementbyid ("txt_test"). Value
2> the subform isIFRAMEWindow. Parent. Fun or window. Parent. OBJ
3> the parent form is usedWindow. showmodaldialog(URL, arguments, feather) when opening the child form, use the following method to obtain it.
1. When showwindow is in progress, you can upload a parameter to the subform (only the actual objective Doc ument is required:
The method is as follows:Window. showmodaldialog(URL, window, "dialogwidth = 300px ;")
2. The form obtains the window object. var pwin = Window. dialogarguments;
3. Same as pwin to call the parent form function. (For example, the parent form function is pfun ());
VaR pwin = Window. dialogarguments;
If (pwin! = Undefined ){
VaR codestr = "pfun ();"
Pwin.exe cscript (codestr, "JavaScript ");
Of course, the above method is directly equivalent to pwin. pfun ()