<asp:ImageButton ID="imgbtn" Width="25px" Height="25px" ImageAlign="Right"runat="server" Visible="true" OnClick="log_Click" OnClientClick="openWindow()" />
var newWindow = null; function openWindow() { if (newWindow != null) newWindow.close(); // for close opened window newWindow = window.open("demo.aspx?xxxx=" + "1200" + "&sada=", 'mywindow', 'height=750,width=1200, menubar=0, resizable=yes'); //alert('close',20) newWindow.focus(); newWindow.location.reload(); }
Note that remote URLs won't load immediately. When window.open() returns, the window always contains about:blank. The actual fetching of the URL is deferred and starts after the current script block finishes executing. The window creation and the loading of the referenced resource are done asynchronously.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)