Results 1 to 2 of 2

Thread: Close Parent Window after child window opens

  1. #1
    Join Date
    Aug 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Close Parent Window after child window opens

    Can someone direct me to a javascript code that will cause the parent window to close once the child window opens? I have found one, but it contains a nag window that requests permission to close the window. I want the parent window to close.

    Can anyone help?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    After the code on the parent page that opens the child window put:

    window.opener='self';
    window.close();

    IE only.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •