Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6801783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:08:33+00:00 2026-05-26T19:08:33+00:00

I have an array of URL’s and I want to create one iframe for

  • 0

I have an array of URL’s and I want to create one iframe for each URL that I have.
But what I want is create and load the next iframe only when the previous was totally loaded.

This is the function that create the iframe:

function loadSubsequencePages(links){
var id = document.getElementsByTagName("iframe").length;

    for(var i=0; i<links.length;i++){
        var frame = document.createElement("iframe");
        frame.setAttribute("id","frame"+id);
        frame.setAttribute("src","about:blank");
        document.getElementById('frames').appendChild(frame);
        changeLoc(document.getElementById("frame"+id),links[i].href);
    }

}

I want to move to the next i only when the actual iframe that I create was loaded.

this is the function that change the URL:

function changeLoc(frm,loc) {
        frm.webNavigation.loadURI(loc, 
                                frm.webNavigation.LOAD_FLAGS_NONE,
                                null, null, null
                              );
    }

How can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:08:33+00:00Added an answer on May 26, 2026 at 7:08 pm

    That depends.

    1. Do you have control over the pages shown in the IFRAMEs?
    2. Are they
      on the same domain as the hosting page?

    There are four scenarios:

    • If they are on the same domain, you can access the content through
      JavaScript.

    • If they are on the same domain, and you can modify the loaded
      pages, you can tell the parent frame when the onload event
      fires from the page loaded in the IFRAME.

    • If they are not on the same domain, and you can modify the loaded
      page, security restrictions will block direct communication. But you
      can ping a central repository on the server from the loaded page when
      the onload event fires

    • If they are not on the same domain, and you can’t modify the
      loaded page… Well you’re in trouble… 🙂 You will not be able to
      check when the pages have finished loading…. Well.. You could create some ugly
      timer loading the pages at a set interval… But don’t tell anybody I
      told you so… 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array of URL Links that I'm trying to load into a
I have a Form element: $Form=new Zend_Form; $Form->setAction($this->view->url(array('controller'=>'auth','action'=>'create'),null,true)) ->setMethod('post') ->setAttrib('id','auth-form') ->removeAttrib('enctype'); As can be
I have an array of Image URl's from that array i have displayed my
I have array of image url. I want to show the images into UIImageView.
I have an array that keeps URL addresses in String format for me. Before
I have an array of url strings (i.e. http://www.cnn.com) which I want to iterate
I have the following code: <?php echo $form->create('User', array('url' => array('controller' => 'users', 'action'
I'm doing a FireFox extensions. I have an array of URL's. What I want
I have a PHP array with URL's that I would like to keep hidden
I have an array built from the URL of a webpage. If an item

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.