Closing browser(with frame)

Discussion in 'ASP .Net' started by =?Utf-8?B?QXVkcmV5?=, Feb 10, 2004.

  1. Hi
    Need some advice here..
    I have a frame with a hyperlink to logout from the site
    When the Logout link (on the left frame) is clicked, a page stating "You've logged out. Please login again" is displayed on the right frame
    Inside the right frame, there's a hyperlink "login" that enables user to re-login to the site
    when it is clicked, a new browser will be prompted to ask user to login

    How do i close the browser(with frame)
    Please Help.....-Audrey
    =?Utf-8?B?QXVkcmV5?=, Feb 10, 2004
    #1
    1. Advertising

  2. To automatically close any browser window, prequisite is that the window must've been opened by some other browser window (e.g. window.open). Otherwise it will prompt the user to get the confirmation before closing itself ( using window.close())

    Alternatively you can put some "target" attribute in the sign-in link, and then assign the name of the frame to that. This way, new sign in window will not open and the sigh in page will open in the same main frame.

    Hope this gives you required direction.

    Avnees
    MCAD, MCSD.Ne



    ----- Audrey wrote: ----

    Hi
    Need some advice here..
    I have a frame with a hyperlink to logout from the site
    When the Logout link (on the left frame) is clicked, a page stating "You've logged out. Please login again" is displayed on the right frame
    Inside the right frame, there's a hyperlink "login" that enables user to re-login to the site
    when it is clicked, a new browser will be prompted to ask user to login

    How do i close the browser(with frame)
    Please Help.....-Audrey
    =?Utf-8?B?QXZuZWVzaA==?=, Feb 10, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tor Iver Wilhelmsen

    Re: how do i enable closing of a frame?

    Tor Iver Wilhelmsen, Aug 16, 2003, in forum: Java
    Replies:
    1
    Views:
    462
    David Brafford
    Aug 18, 2003
  2. James Hurrell

    Closing a frame in a frameset

    James Hurrell, Jul 25, 2003, in forum: HTML
    Replies:
    18
    Views:
    2,423
    Isofarro
    Jul 28, 2003
  3. =?Utf-8?B?Vk1J?=

    Closing popup window when closing parent window?

    =?Utf-8?B?Vk1J?=, Feb 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    644
    Thomas Hansen
    Feb 15, 2007
  4. jd
    Replies:
    0
    Views:
    339
  5. thomas
    Replies:
    0
    Views:
    218
    thomas
    Oct 23, 2003
Loading...

Share This Page