#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Guildford,Surrey,UK
    Posts
    1
    Rep Power
    0
    I am having problems targeting a specific frame in the opener window from a popup window. I can load into the entire window but can't target a frame other than the one the popup spawned from. Any ideas?

    From opener:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var loaddelay = null
    var timer = 0
    var timelength = 15000
    function newsAlert(url, name) {
    popup = window.open('','News_Flash',"width=350,height=250");
    popup.location.href="news/news_flash_popup.htm";
    if (popup.opener == null) popup.opener = window;
    popup.opener.name= "original";
    timer=setTimeout('newsAlert()',timelength);
    }
    -->
    </SCRIPT>
    From popup:
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function docLoad(url) {
    opener.location = url;
    }
    -->
    </SCRIPT>

    <A HREF="#" onClick="docLoad('a_document.html')">A Document</A></P>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Helden,Limburg,The Netherlands
    Posts
    33
    Rep Power
    15
    The following reference should work:

    opener.parent.Framename



    ------------------
    Ramon Litjens
    Boradoli Web Design
    (www.boradoli.nl)

Similar Threads

  1. putting values from frames to form in opener window
    By hade in forum HTML Programming
    Replies: 0
    Last Post: December 17th, 2003, 07:00 AM
  2. Accessing opener form fields in popup window
    By hemas in forum HTML Programming
    Replies: 3
    Last Post: October 22nd, 2003, 02:13 PM
  3. javascript popup window reusing from multiple openers?
    By sengoku in forum JavaScript Development
    Replies: 2
    Last Post: October 1st, 2003, 10:44 AM
  4. subwindow target window opener?
    By zfang in forum HTML Programming
    Replies: 2
    Last Post: March 6th, 2002, 04:04 PM
  5. custom everything in new window, how?
    By edwinx in forum HTML Programming
    Replies: 6
    Last Post: June 29th, 2001, 01:06 AM

IMN logo majestic logo threadwatch logo seochat tools logo