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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:41:04+00:00 2026-06-17T19:41:04+00:00

Possible Duplicate: History.Back with refresh I have an input button that I have assigned

  • 0

Possible Duplicate:
History.Back with refresh

I have an input button that I have assigned with onclick="history.back()" .

Is there a way to use this but force the previous page to be refreshed?
I want it to work in FF and IE8

  • 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-06-17T19:41:05+00:00Added an answer on June 17, 2026 at 7:41 pm

    Depending on what exactly you need, here is a fix which needs some more preparation at first, but should work:

    1. Place an invisible element with a (serverside created) timestamp in your document.
    2. Place an eventlistenener which checks the timestamp and reloads the page if it is too old.

    Now when you navigate back to this site, either via your button or the browser’s back button, the onload handler will fire, check the date and reload the page if necessary.

    client side pseudo code:

    document.body.addEventListener("load",function(){
        // compare timestamp stored in element with current time and if it is too old,
        // reload page e.g. via document.location.reload()
       var d1 = document.querySelector("#timestamp").innerHTML;
       var d2 = Date.now;
       if (d2-d1 > 10000 ) document.location.reload();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Page history - back button exists? I need to have a link
Possible Duplicate: Prevent Back button from showing POST confirmation alert I have used the
Possible Duplicate: How to delete a ‘git commit’ Knowing that this will change history,
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: Ruby.Metaprogramming. class_eval I have this little project, the goal is to create
Possible Duplicate: ASP.NET authentication login and logout with browser back button I want to
Possible Duplicate: Removing an activity from the history stack Suppose I have three activities
Possible Duplicate: How to rewrite URL without refresh, like GitHub.com Hi all, I have
Possible Duplicate: Mercurial: copying ONE file and its history to another repository I have
Possible Duplicate: In git, is there a simple way of introducing an unrelated branch

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.