Click here to Skip to main content
15,890,947 members

Comments by Member 12554029 (Top 8 by date)

Member 12554029 18-Dec-17 8:28am View    
there has to be a secure window close sign for some place, i'm use OnClientClick = "window.close(); for close windows
Member 12554029 18-Dec-17 4:59am View    
the scripst do not work for me, they do not hide the background, the page1 that is where the Div to hide has this escript


function hideDiv () {
var div = document.getElementById ('<% = background.ClientID%>');
div.style.display = 'none';

<pre>
}
&lt;/ script&gt;</pre>


and the page that closes and must give the order to hide it has this other

<script type = "text / javascript">
window.attachEvent ('beforeunload', function (event) {
window.opener.hideDiv ();
});

<pre>
&lt;/ script&gt;</pre>
Member 12554029 15-Dec-17 8:47am View    
In the solution that you give me, where is the instruction that is equivalent to div.Style.Add ("display", "none")? can it be in ajax?
Member 12554029 15-Dec-17 8:04am View    
When I close page 2 the div on page 1 must execute
div.Style.Add ("display", "none")
Member 12554029 15-Dec-17 7:49am View    
How could I do that?