In the pop-up window, pass a value to the parent window and execute the event in the parent window:
The pop-up window script in the parent window is as follows:
Function getwinmodalinfo ()
{
VaR strreturn = "Height = 520, width = 820, toolbar = No, menubar = No, scrollbars = No, resizable = No, location = No, status = No ";
Return strreturn;
}
VaR valueobj;
Function openselectwin (URL)
{
VaR strwinmodalinfo = getwinmodalinfo ();
Valueobj = Window. Open (URL, "newwindow", strwinmodalinfo );
}
Script for returning values in the pop-up window:
<Script language = 'javascript '> window. opener. getselectedvale ("+ selvalue +"); window. Close (); </SCRIPT>
The parent window receives values and runs the corresponding event script:
Function getselectedvale (VAL)
{
If (Val! = "")
{
Document. Forms [0]. <% = TXT. clientid %>. value = val;
Document. Forms [0]. <% = BTN. clientid %>. Click ();
}
}