Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts

    testing to see if SELF is a popup? can it be done

    is there a reliable and effective way to determine if the page which is detecting is a popup from a parent.

    the reason being is, in some instances a page will be a normal page, and others a popup from another site...they are both the same pages...but things change on it depending if its in a popup or not..

    basically, a 'certain' referrer is detected..but since the process is multiple pages long,,I need to test also on whether there is a 'parent or opener' OR to see if the popup can detect to see if ITSELF is a child or popup.

    is there?

    any ideas...

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Silicon Valley, CA
    Thanked 0 Times in 0 Posts
    You could try:

    if (window.opener) popup=true;
    else popup=false;
    I haven't tested it, but logically it shoud work...


    Posting Permissions

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