Prev: Does anyone create sites without using tables for layout?
Next: ReportView + SQLDataSource (dinamically defined)
From: JohnE on 10 Jan 2010 02:08 I have a masterpage that has a linkbutton on it for logging out (or closing the window), so it is the same on all pages associated with the masterpage. The parent page is not opened using javascript. The child windows are using javascript. Below is the javascript function and the linkbutton for the logout. function CloseWindow() { window.close(); child = window.open('../LogOut.aspx','_blank','height=480,width=640,resizable=no,scrollbars=no,menubar=no,status=no') } <asp:LinkButton ID="lbtnLogOut" runat="server" OnClientClick="CloseWindow()" >Log Out</asp:LinkButton> I am asking if anyone has information that would allow the function to decide if the window is a child or the parent? If child then no logout window is needed. If parent, then the logout window is needed as it allows the user to re-enter, or close out and go home. Thanks John
From: Mark Rae [MVP] on 10 Jan 2010 07:39
"JohnE" <JohnE(a)discussions.microsoft.com> wrote in message news:C790317D-C828-423A-9AFC-95BE13258B03(a)microsoft.com... > I am asking if anyone has information that would allow the function to > decide if the window is a child or the parent? http://www.webreference.com/js/tutorial1/opener.html Also, see: http://www.google.co.uk/search?hl=en&rlz=1C1CHMA_en-GBGB328GB328&q=%22window.open%22+avoid+popup+blocker&btnG=Search&meta=&aq=f&oq= -- Mark Rae ASP.NET MVP http://www.markrae.net |