Popup window unable to write text in the parent window
-
Hi, I am using a simple popup application in which I popup a window and the window will write the value into the parent window text box. child.aspx function Fillvalue() { var txtDefault = document.getElementById('txtChild'); window.opener.document.form1.txtDefault.value = txtDefault.value; window.close(); } default.aspx function OpenPopup(parentID) { var winHeight = 600; var winWidth = 830; var url = 'frmChild.aspx?'; options = 'menubar=0,resizable=1,status=0,scrollbars=1,height=' + winHeight + ',width= ' + winWidth + ',left=' + ((screen.width-winWidth)/2) + ',top=' + ((screen.height-winHeight)/2); window.open( url, '', options ); } This is working fine and returning me the desired value. which I entered in the child(popup) window. but, when I am using window.opener.document.form1.txtDefault.value = txtDefault.value; in my other application the above is not working. I am very much confussed, what might be wrong, any solution please.... :confused::confused: Ram