Expiring A Page in **BOTH** IE & NS

Posted on 2000-03-02
Last Modified: 2010-04-09

I've noticed that the tags:
<META http-equiv="Expires" content="Tue, 20 Aug 1976 14:25:27 GMT ">
<META HTTP-EQUIV-equiv="Refresh" CONTENT="5">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

Do not work in IE 5.

I have a site with several sequential html pages with forms on them.

I would like to fix things such that once the user leaves one page in the sequence that they can't go back.......or go back and have the same info in those fields.

Is there a simple way that I can do this in IE AND NS?

Question by:Steve34
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 33

Expert Comment

ID: 2577864
This may not be a perfect solution, but you could try resetting the form each time the page loads:

<BODY onLoad='document.nameofmyform.reset();'>

Expert Comment

ID: 2579369
Try removing <META HTTP-EQUIV-equiv="Refresh" CONTENT="5">
the -equiv and see what happends. <META HTTP-EQUIV="Refresh" CONTENT="5"> hopefully this will refresh every 5 seconds.

Author Comment

ID: 2641731
Here is an update to the problem:


I have finished building a dynamic web site that submits a one large form........broken up over several seperate pages.... to a database.

It has to be this way.  I don't have the option of changing the design.

For a number of reasons I would like to prevent my users from hitting their "Back" buttons and going back to a form on a previous page.

The usual meta tags do not work in IE:
<META HTTP-EQUIV="Pragma" CONTENT="No-cache">
<META HTTP-EQUIV="Cache-Control", "private">

I found a web site on the internet that confirmed that they will not in IE.

I also found a link on MSDN explaining why:

This articale offered the soloution of writing the raw http headers for these tags into the web page via ASP.

ASP is not an option for this project.

I went to W3 to look up the protocols.

Frankly, I am a junior programmer.  The RFC's there are way over my head and I don't have the days/weeks to translate them and figure out how to adapt what they have to say to my  particular problem.

I was wondering if someone could give me an example of how to put a raw http header into an html the ones for the meta tags above.

Other suggestions for disabling the "Back Button" options in IE ( & Netscape ) would be greatly appreciated.


Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 2641747
Adjusted points from 100 to 200

Accepted Solution

lambda earned 200 total points
ID: 2685119
The following code was found at

"MSIE 3,4,5 cache pages even when you send the HTTP headers that are supposed to indicate to the browser
not to cache the page. The following page illustrates a little javascript you can use to work-around this problem. "


Expert Comment

ID: 2685145
How do I disable the "Back" button of a browser?


Author Comment

ID: 2704929


Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question