File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes enable Browser Back Button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "enable Browser Back Button" Watch "enable Browser Back Button" New topic

enable Browser Back Button

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238

This is little strange because norammly come here to ask how to diable browser back button. I have following code in my header.jsp which is included in all my jsp's

<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Now even if I comment this code my browser back buttondont work. How can I enable my browser back button. Is there anything else that can be done to prevent a user from using back Button that I can find and remove from my code.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

I see no JSP dimension to this question, so it has been moved to the HTML forum.

[Asking smart questions] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: enable Browser Back Button
It's not a secret anymore!