<script type="text/javascript"> function openwindow() { window.showModalDialog("default4.aspx") //retval=window.showModalDialog("default4.aspx") //document.getElementById('text1').value=retval }
</script> <head runat="server"> <title>Untitled Page</title> </head> <body> <form name="frm" runat="server"> <input name="text1" type="text"> <input type="button" onclick="javascript:openwindow()" value="Open window.."> <div id="test"> This must be hide</div> <div> No CHange </div> </form> </body> CHild window <head id="Head11" runat="server"> <title>Untitled Page</title> </head> <script type="text/javascript"> window.onload=function changeparent() { //window.returnValue="Value changed.." window.parent.document.all("test").style.visibility = "hidden" ; } </script> <body> <form id="aa" runat="server"> <input type="button" onclick="javascript:changeparent()" value="Change main window’s textbox value.." /> </form> </body> </html>
window.opener.getElementById('parentDivId').style.visibility ="hidden";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)