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

  • SEARCH
  • Home
  • 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 7045109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:29:23+00:00 2026-05-28T02:29:23+00:00

I have few pages that I show from my main page inside iframe .

  • 0

I have few pages that I show from my main page inside iframe.

I got a background image in the main page, when I click the button to change the page inside the frame the frame background color is becoming white somtimes until the page is visible.

I added background-color:transpert to the pages themselves and to the main page CSS.

I checked the site with FireFox and IE and it look fine (the background of the frame doesn’t change) but with Chrome it somtimes rendering fine like I wanted it to be and other times the iframe background goes White.

Can i do anything that will fix 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-28T02:29:24+00:00Added an answer on May 28, 2026 at 2:29 am

    As this is browser behavior I doubt it can be really “fixed”.

    One workaround is to hide the frame while it’s loading (only for Chrome) – here is the code:

    var isChrome = (navigator.userAgent.indexOf("Chrome") >= 0);
    function LoadFrame(url) {
        var oFrame = document.getElementById("myframe");
        if (isChrome) {
            oFrame.style.visibility = "hidden";
            oFrame.onload = function() {
                oFrame.style.visibility = "visible";
            };
        }
        oFrame.src = url;
    }
    

    Live test case. (Reloading same frame there but the concept is the same)

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

Sidebar

Related Questions

I have a few html image tags that fill an array. On the page
I have a few static pages that are just pure HTML, that we display
I have a few pages and want that they use one style. See in
I have a few pages on my asp.net website that I would like to
I have to choose a server pages technology for a few server components that
I have a page that takes a few minutes to run. When I set
I have a page with a few links that are all like this: <a
I have a website that has an index.php, a few simple .html pages and
I have an ASP page that retrieves text from a database but the formatting
I have a WP site where I've also got a few php pages outside

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.