SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast subBlue's Avatar
    Join Date
    Jun 2001
    Location
    Edinburgh, UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can you check whether another browser window is open?

    Is it possible to check for the existance of another browser window - say a pop-up window with a specific name?

    Thanks
    Become Interactive because its all gone a bit subBlue

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah,
    but it depends on how the window was opened.

    If the window was opened by the existing window, or it's parent, you can test for it's existance.
    If you have control of the window, you can test for it's existance.
    Otherwise you must use ActiveX controls and have them signed (so as not to prompt) to test for classid existance within the windows reference, and i've never tried this, so i'm not sure that would work.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    SitePoint Enthusiast subBlue's Avatar
    Join Date
    Jun 2001
    Location
    Edinburgh, UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks flawless for your replies.

    I'm opening the pop-up window with:
    photowindow = window.open(url,"the_photo","width=600,height=500,scrollbars,resizable");

    So in the parent window how do i check that the pop-up window is still open?
    Become Interactive because its all gone a bit subBlue

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not sure

    I always do this bit by playing around til i get the ref working.


    I'd suppose that you could try using the Jscript reference you assign the window on opening in the child?

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •