www.webdeveloper.com
Results 1 to 3 of 3

Thread: Javascript popup window communication

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Javascript popup window communication

    We're building an app where a user can navigate through a site in the usual way, opening and closing different windows but at the start we wish to launch a popup window that can communicate with these web pages in the same domain. How do you find out if there is a popup window open with a certain name and then communicate with it?

    Thanks

    Matt

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You can only do that if the windows are all children of the first (parent) window.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Mar 2010
    Posts
    2,803
    If in a given window you used something like

    Code:
     
    var newWin = window.open('your_url');
    then in the given (parent) window you could do something like this:

    Code:
     
    if(newWin )  {
     
    //do something here
     
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles