+ Reply to Thread
Results 1 to 3 of 3

Thread: Possible to close window from non-parent?

  1. #1
    Barn Regular bryceowen is on a distinguished road bryceowen's Avatar
    Join Date
    Sep 2008
    Location
    Jacksonville, FL
    Posts
    93
    Rep Power
    4

    Possible to close window from non-parent?

    Just like the title asks, is it possible to close a window from one that didn't spawn it?

    Here's what I'm doing:
    I have a PHP script that constantly refreshes. If something happens with the data that is being refreshed, a popup will appear to alert whoever is watching it. If the situation clears itself, I want the popup to disappear.

  2. #2
    Barn Newbie Kraevin is on a distinguished road Kraevin's Avatar
    Join Date
    Mar 2010
    Posts
    7
    Rep Power
    2

    I think that if you have the name of the window you should beable to open a link to a page that has js that is close window.
    It shouldnt be a problem as long as the domain that opened it is the same one that invoked the page that closed it. (Of course I havent tested this theory lately either)

  3. #3
    Ask Me About Dragons :D Shadow Wizard has a spectacular aura about Shadow Wizard has a spectacular aura about Shadow Wizard's Avatar
    Join Date
    Jul 2008
    Location
    Israel
    Posts
    795
    Blog Entries
    2
    Real Name
    Yahav
    Rep Power
    5

    any window that has been opened via code (window.open) can be also
    closed by code if you know its name, which is the second parameter given
    to the window.open method.

    not sure about domains, might be good idea to test it somehow..

+ Reply to Thread

Similar Threads

  1. Passing value between parent and IFrame
    By richyrich in forum .NET Development
    Replies: 5
    Last Post: August 13th, 2009, 12:33 PM
  2. Using a pop up window in C#
    By yangski in forum .NET Development
    Replies: 3
    Last Post: July 24th, 2009, 04:48 AM
  3. close window
    By sbenj69 in forum PHP Development
    Replies: 2
    Last Post: March 4th, 2009, 01:54 PM
  4. On submit then close form/window
    By Centurion in forum JavaScript Programming
    Replies: 25
    Last Post: March 2nd, 2009, 05:50 AM
  5. Access 03 Adding updating data from child table to Parent
    By nboscaino in forum Microsoft Access
    Replies: 8
    Last Post: July 15th, 2008, 09:12 AM

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

SEO by vBSEO