how to pass value from iframe to parent window

  asp.net, html, javascript, jquery, windows

I was trying hide a URL in the Microsoft edge using window.Open()popup windows and it seems ok in IE browser, but URL displays in all the modern browsers.
Due to security reasons, all the modern browse displays the URL but need to hide.
so I used Iframe to change the URL to About: blank but I couldn’t pass value from Iframe to parent window.

var iframe = '<html><head></head><body><iframe id="ctl00_ContentPlaceHolder1_searchvalue" src="popup.aspx" title="OPAS" style="height:calc(100% - 4px);width:calc(100% - 4px)"></iframe></html></body>';
var win = window.open("", "search", "titlebar = no,location=no,menubar=no,center:yes,toolbar=no,scrollbars=no,width=700,height=500[color=blue]40,top=100,left=200");
 win.document.write(iframe);

once I selected the value from popup.aspx , that value passed to the parent window.Anyone idea or help is appreciated

Source: Windows Questions

LEAVE A COMMENT