ShowModalDialog back to the problem (reposted)

xiaoxiao2021-03-06  52

I have encountered this problem in the project, but I have already solved it. Today I discovered this article, I reposted.

If you use Window.ShowModalDialog () to use Window.ShowModalDialog () to use Window.ShowModalDialog (), you cannot use the Window.opener property in the sub-window (文 法, but I don't know how to use text descriptions ... I just think of this solution, you will see it. First, ShowModaldialog () is used as follows: vreturnValue = window.showmodaldialog (SURL [, varguments] [, sfeatures]) By learning this Method has three input parameters, SURL, Varguments and SFeature, except SURL must be filled in to the target web page, and the latter two are not necessary. My idea is that when you use ShowModalDialog () to open a sub-window in the mother's view window, you will be prepared to receive the value of the value (MyObj), and the sub-window is only taken out to take the object to get myObj in the mother window. Come, you can operate directly to the object directly, just follow you in the mother's facilities, MYOBJ is the same. Hey, the above narrative seems to be very difficult to understand ...? I attached two html to exemplify ... Please file two paragraphs, if the file is not aa.htm and bb.htm, please modify it. Related names. This is the mother's facility window aa.htm