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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:55:46+00:00 2026-06-08T04:55:46+00:00

I have created a html page with the following code in between head tags:

  • 0

I have created a html page with the following code in between “head” tags:

meta http-equiv="Refresh" content="5; url= contacts.html"

Now when the above code is added to a web page, It waits for 5 seconds and moves the contacts.html page. If you press the “back” button on your browser, the browser will take you to the previous page which is the “intro page” or the page that I have entered the above code.

But I need to stop that from happening(returning back to the intro page when the ‘back’ button on the browser is pressed). Is it possible to do so? If its possible, then how? o_O

  • 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-08T04:55:47+00:00Added an answer on June 8, 2026 at 4:55 am

    You can use javascript to do this, but JavaScript isn’t foolproof because someone could turn off their javascript and bypass your mechanism.

    Add this inside your and add onload="preventHistoryBack()" to your -tag in your content.html:

    <script type="text/javascript">
        function preventHistoryBack() {
            for(var i = 0; i < window.history.length; i++) {
                window.history.back(i) = window.location;
            }
        }
    </script>
    
    <body onload="preventHistoryBack()">
    

    This will replace the complete history of the browser with your current location. So when the user hits the back button, it will go to the same page as he is now.

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

Sidebar

Related Questions

I have created a HTML document with following code.. <html> <head> <title>My Page</title> </head>
I have created the following demo: http://thedrivepartnership.com/overflow.html The scrolls expand fine in FireFox /
I have the following jquery code which loads the #content div from another page,
I have created a html page in php and upon submission i validates that
I have a header within the following html page and I can't get the
I have created some code that emails an html email to a given address.
I have created a HTML page for Blackberry. I have done all right but
With the following jQuery code I have created a drop down that updates the
I have two vertical bar charts (created using jqPlot) in my HTML page. They
Within my C# code behind page, I have the following: MembershipUser currentUser = Membership.GetUser(false);

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.