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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:20:01+00:00 2026-05-28T14:20:01+00:00

I have a situation where pressing F5 or CTRL+R causes a frameset to load

  • 0

I have a situation where pressing F5 or CTRL+R causes a frameset to load a frame twice. It happens on localhost, but as I’ve just put together an example for this question and uploaded it, I notice it varies by browser.

Visiting the link for the first time or clicking the browser address bar and hitting enter performs a ‘normal refresh’, as desired.

The test case I put together below has 2 frames, one left empty. When frame1.html loads, the frameset then sets frame2’s src, which then loads frame2.html. Both should alert only once, but you’ll see that is not the case for ‘frame2.html’.

Behaviour-by-browser:

  • Chrome16 & Safari5.1 works as expected both localhost/live
  • FF9 double-up on localhost, works as expected live
  • IE9 double-up on both localhost/live
  • haven’t tested other / older browsers yet, but I anticipate some agony

I tried clearing the src attribute on the frameset’s unload event in the hope it might at least load nothing before doing the double-up and then loading frame2.html, but even if that had worked (which it didn’t) it’s nasty.

My questions:

  1. Why is the double refresh happening, when it does happen?
  2. Is there a way to prevent the double-up?

Here’s the link: http://codefinger.co.nz/public/frameset_test/frameset.html and also the rar’d files: http://codefinger.co.nz/public/frameset_test/frameset_test.rar

  • 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-28T14:20:02+00:00Added an answer on May 28, 2026 at 2:20 pm

    Ok, lack of an explanation drove me mad, but I did find a way to stop this default, inconsistent behaviour.

    I listen to the frameset’s window.unload event (YUI3.5), and remove the double-up frame node altogether. The double-up goes away, everything appears normal.

    Tested successfully in (both localhost and live server):

    • Chrome 16.0.912
    • Firefox 3.6, 9.0.1
    • IE 6,7,8 & 9
    • Safari 5.1

    Does not work in:

    • Opera 11.61 (I can’t access and manipulate the frameset element)

    I’ll still +1 for any explanations as to why the frameset load double-up occurs in the first place.

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

Sidebar

Related Questions

We have a situation where one of our products is a 32-bit app, but
i have situation like this: class IData { virtual void get() = 0; virtual
I have situation, where running a query that filters by an indexed column in
I have situation in which I read a record from a database. And if
I have situation where I need to change the order of the columns/adding new
I have situation where a user can manipulate a large set of data (presented
I have situation like this: user submits form with action='/pay' in '/pay' I have
Pseudo-situation: have a class (let's say BackgroundMagic ), and it has Start() and Stop()
We have a situation where users are allowed to upload content, and then separately
We have a situation in our product where for a long time some data

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.