Check that child window is done loading external http url

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ng

    Check that child window is done loading external http url

    i want to open 10 external urls one after the other(preferabl y in same
    window) only after the previous one gets loaded successfully

  • lallous

    #2
    Re: Check that child window is done loading external http url

    Hello

    First, in your main window, you set the onload handler as:

    maindoc's onload="open_wi ndow1();"

    Then in window1's onload handler: "window.opener. window.open_win dow2();"

    etc...
    the main doc contain all the window creation code.

    HTH,
    Elias
    "ng" <ngashok@gmail. com> wrote in message
    news:1120797444 .069245.237460@ g43g2000cwa.goo glegroups.com.. .[color=blue]
    >i want to open 10 external urls one after the other(preferabl y in same
    > window) only after the previous one gets loaded successfully
    >[/color]


    Comment

    • ng

      #3
      Re: Check that child window is done loading external http url

      did u mean this?

      function w1open()
      {
      alert("window loaded");
      }
      function wackOpen(){
      var
      my_window1=wind ow.open('http://www.gmail.com', '','left=20,top =20,width=2,hei
      ght=2');


      my_window1.onlo ad="w1open()";


      }

      but this didnt work.. could you modify the code and make it work pls

      Comment

      • ASM

        #4
        Re: Check that child window is done loading external http url

        ng wrote:[color=blue]
        > did u mean this?
        >
        > function w1open()
        > {
        > alert("window loaded");
        > }
        > function wackOpen(){
        > var
        > my_window1=wind ow.open('http://www.gmail.com', '','left=20,top =20,width=2,hei
        > ght=2');
        >
        >
        > my_window1.onlo ad="w1open()";
        >
        >
        > }
        >
        > but this didnt work.. could you modify the code and make it work pls
        >[/color]

        on my idea, only the page in the popup
        can tell you it is loaded.

        perhaps ? :

        my_window1.docu ment.onload="w1 open()";

        --
        Stephane Moriaux et son [moins] vieux Mac

        Comment

        Working...