SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2006
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    is javascript locked to a given window?

    when a window creates a child window thorugh JS, then it creates another child window, would that second child window knew if existence of its sybling?

    if that second child calls out with a name given by the parent window to the first child, would the first child resond?

    ...damn this is a psychological dillema on family relations

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,810
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Possibly

    opener.window2name.whatever
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Guru
    Join Date
    Apr 2006
    Posts
    802
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    var pa=this;
    var family=[];
    while(pa.opener){
    family.push(pa.windows);
    pa=pa.opener;


    // pa is the father of all your fathers , Luke, and family is an array of arrays of all the relations


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
  •