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 6909003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:38:03+00:00 2026-05-27T08:38:03+00:00

I have numerous iframes that load specific content on my pages. Both the parent

  • 0

I have numerous iframes that load specific content on my pages. Both the parent and iframe are on the same domain.

I have a scrollbar inside the iframe that doesn’t seem to load correctly in all browsers. But when I refresh the iframe it loads perfect. I have no idea why it does this.

I have used the meta refresh, which works but I don’t want the page to refresh constantly, just once.

The solution I’m looking for will reload the iFrame content after the iFrame is opened, with a minimal delay.


Edit

I realized that my page loads all of my iframes when the index is loaded. The iframes appear in a jQuery overlay, which is also loaded but visibility:hidden until called. So on this call is when I would want the iframe to be reloaded.

Could anyone help me come up with a Javascript function that reloads the iFrame when I click the link to the iFrame? I’ve gotten close but I know nothing about js and I keep falling short. I have a function that reloads the page, but I can’t figure out how to get it called just once.

I have this so far:

<script type="text/javascript">

var pl;
var change;
pl=1;

function ifr() {

if (pl=1) {
    document.location.reload([true]);
    alert("Page Reloaded!");
    change=1;
    return change;
}

change+pl;

}

So basically it uses the document.location.reload which works to reload the page. I’m trying to then make pl change to something other than 1 so the function doesnt run again. I’ve been calling this JS from the body with onLoad.

  • 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-27T08:38:03+00:00Added an answer on May 27, 2026 at 8:38 am

    All the leads on this went dead, but I did find a code snippet that worked. Not written by me, and I don’t remember where it came from. Just posting to help someone should they ever have the same question.

    <div class="overlay-content"> //Content container needed for CSS Styling
        <div id="Reloader"> 
            //iFrame will be reloaded into this div
        </div>
    
        //Script to reload the iframe when the page loads
        <script>
            function aboutReload() { 
                $("#Reloader").html('<iframe id="Reloader" height="355px" width="830px" scrolling="no" frameborder="0" src="about.html"></iframe>');
            }
        </script>
    </div>
    

    Basically just loads the iFrame source when the window with the iFrame opens, as opposed to the iFrame loading when the original page loads.

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

Sidebar

Related Questions

I have numerous projects that all contain the exact same boilerplate code inside of
I have numerous functions (unknown at design time) that each take a specific number
In my program I have numerous Entity classes with a Texture2D attribute that are
I have included numerous coldfusion and html files in CFM pages using the <cfinclude>
I have seen numerous questions on MVP that mostly revolve around the View and
I have a rather interesting problem. I have a parent page that will create
We have numerous python classes that do not seem to need __init__ , initialising
I have numerous reusable functions, all with the same signature (they take a record
I have numerous buttons that go to different views on my main page and
I'm creating a Django powered website that will have numerous applications (Blog, Shop, Portfolio,

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.