Send value from popup (Child) to parent
1 answer
Your question is not clear, but from what I was outputting you want to get the value of the textbox from the parent window in the child window.
You can do something like this -
var win = window.open('<Window URL>');
win.contentWindow.SetValueOfTextBox(parentWindowTextBoxValue);
Here win
is the instance of the window you opened.
You will need to define the function SetValueOfTextBox
in the new window you opened. This function will take a string and set that value to a text box on this page. You just need to call this function from the parent window passing a text field to it.
0
a source to share