Sending the value from popup window to parent window using javascript

Content: jQuery

Posted On: Apr 16, 2011 Resource: PHPjQuery.com More (Source Content)
In javascript, “opener.document” function will do this functionality.
See the example:
First create the file “parentpage.html” Then paste the main page code.
The create the file “popup.html. Then paste the code popup page code.

Main page

Popup Window Popup window Poup up value to assign this textbox:

Popup page

Popup Box function SubmitValue(){ opener.document.parentform.txtBox.value = document.popupform.txtPopupbox.value; self.close(); }

Related Posts: