Disable explorer back button (using JS)
please tell me how to disable explorer back button, i have made a project and i want to disable explorer back button on signout button, tell me the code using java script
The page that the browser goes back to would have to identify that it came from some place that was not right and redirect to an error page. This means you need all kinds of checking in every page. Of course, if a page has specific input requirements, it makes it easier, but you need a lot of state validation to keep track of these things. If back goes to a form submission page that already was submitted, you need to be able to track this and deny resubmission... But the browser will really be sending the same data from the original form. So you might have a hidden field with some unique ID that once used, can't be used again.
In my current project, we have a check on all pages to redirect to login. Login uses Javascript to popup the actual login and application in a new window without menus and toolbars. This removes the back button. The user can still use the popup right-click menu to go back, but this is not a common thing for many users, and we have our pages designed in such a way as to facilitate going back when appropriate, but when not, they can't.
In some ways, you have to trust that the user isn't going to go back when it's not appropriate... well, I might be dreaming here...
Similar Messages
-
Disabling of back button in Oaf
How to diasble the functionality of back button present in Internet explorer?
Thanks in advanceYou cannot disable the back button functionality, but can handle the back button clicks on your page.
Please check pageContext.isBackNavigationFired() method. Accordingly there is a class called TransactionUnitHelper which can be used to identify the sequencing of the back button and a decision made accordingly whether you want to continue with the page functionality or show a Stale data page.
Regards
Sumit -
How to disable browser back button in Oracle ADF
I need to disable browser back button in an ADF web application.
The back button is not disabled but if I click it after visiting main page (e.g. from the page after main to the main page) it returns to the second page. I would to diasble the back button at all. Is it possible? If you know something specifically for ADF application (also without using javascript) the answer is welcome.see frank's reply in the post:
Disable Browser Back Button
hope this helps :) -
How to disable the back button when displaying a form
Hi ,
i have form A calling form B, when form B is displayed i want to disable the
back button in the explorer so as not to allow the user from going back to
form A.
thanks.When you open a new window, call following javascript function also to disable the "back" button.
window.history.forward(1);
It will work. -
Hi
How to disable the back button in the Internet Explorer in Java or Jsp or Servelts.
Thanks in advanceWhy are you repeating the question? You posted the
same question two days ago:Well, that was a long time ago. Technology has
advanced since then and might have provided a
solution.:) -
How can we prevent back button using java script
how can we prevent back button using java script
Would be quicker for you to google for javaScript
javascript:window.history.forward(-1); -
Disable Browser back Button in OA page
Hi Experts,
Can anyone tell me how to disable browser back button in OA page.. Any advice would be appreciable.
Thanks in advance,
SandipHi Reetesh,
Thanks for your reply but this code gives the following Error:
non-static method getRootWebBean() cannot be referenced from a static context
When I tried and kept the following code it solved error but did not work.
OABodyBean bodyBean = (OABodyBean)pageContext.getRootWebBean();
String javaS = "javascript:window.history.forward(1);";
bodyBean.setOnLoad(javaS);
Thanks and Regards,
Sandip -
History problem in jsp page,internet explorer back button
hi everyone
i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
my problem is:
when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
and i click back button from I.E only one page back it is showing
but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
whne i click back button ,now it is showing two a.jsp page .history is not going .
this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
if anyone has understood my problem ,please help.
thankuthanks java2006
but it is not working .i will try to explain once again
1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
3.again user select the 2ndvalue from drop down box ,related value is displayed.
this i explained about my a.jsp page.
problem is
4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
the back button of internet exlorer showing two a.jsp page after clcicking submit button
.as u have told the code aso but it is not working
i have added ur code indisde html tags . -
SRM5.0 Catalog Std. Call Structure - Disable Browser Back Button
Hi colleagues,
we're on SRM5.0 and have the catalog configured as "Standard Call Structure", i.e. it is displayed in a new browser window.
Is there away to disable the browser back navigation functionality, i.e. open the window without address bar and back navigation buttons?
There doesn't seem to be anything in SPRO in order to control this.
Thanks, UlliHi
I think it is a settings of browser
for eg
internet explorer -> view -> tool bars -> standard tool bar (activate / inactivate )
so you can not see backe button.
br
muthu -
How to disable browser back button after session logout..
Hi;
I want to restrict the user to use the back button after session expired or logout. By doing the session expired we are restricting the user to do any new work but I want to restrict the user to see the back pages that he surfed previously in the session.
Is there any method to disable the browser back button after the session Expired?
please help me to find out the solution..
Thanks in advance.
With Regards,
HaramohanOne possible way is automatic return to the current page by writing the following Javascript code to the previous page:
<script language=JavaScript>
function backButtonOverride(){
setTimeout("backButtonOverrideBody()", 1);
function backButtonOverrideBody(){
try {
history.forward();
} catch (e) {}
setTimeout("backButtonOverrideBody()", 100);
</script>
<%
catch(Exception e){
%>
<jsp:forward page="front.jsp"></jsp:forward>
<%
%> -
Hi All
I'm developing a web app using jdeveloper 11.1.1.4.
In my web appication I want to Disable the browser Back button,
Is there way to do this,
Thanks
PadmaHi,
no, there is no option for this. You can try JavaScript as explained here: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
See: "Disable Back functionality using history.forward"
Frank -
How to make a back button using AS3
I'm trying to do my first project using ActionScript in CS4. I need to make a back button that will take the user back to the last "slide" they were on.
I went through the effort of creating a back button that I only realized didn't work after I was finished. I had it set up to just go to the previous slide and totally ignored the fact that there are several branching scenarios.I'm more or less having to teach myself at this point. Where should I go to learn about using an array?
-
JDeveloper - How to create a "back button" using JSF
As simple as it sounds, I'm having trouble creating a basic back button on my JSF page. I'm using a af:goButton with the Onclick attribute stating history.back(). I've also tried history.go(-1) to no avail.... is there a trick to this?
Thanks,
RichardIf you are looking for a more advanced case as describe, you will need to reference the last navigation outcome in a managed bean so that you can execute it when the back button is clicked.
--Ric -
Is there any way to disable the back button of the browser?
Hello,
I dont want to cache some pages in my application so that they will not get back when back button of the browser is clicked.
Is there any way for that?
I also want to know if the back button can be disabled.
thanks in advance
vakvarmaEh, What's happening to this forum. I read the thread, and clicked back, and got this:
alTextPo 2000 sition)); else setUI(new CloseableTabbedPaneUI(horizontalTextPosition)); } /** * Allows setting own closeicons. * @param normal the normal closeicon * @param hoover the closeicon when the mouse is over * @param pressed the closeicon when the mouse is pressed */ public void setCloseIcons(Icon normal, Icon hoover, Icon pressed) { normalCloseIcon = normal; hooverCloseIcon = hoover; pressedCloseIcon = pressed; } /** * Adds a <code>Component</code> represented by a title and no icon. * @param title the title to be displayed in this tab * @param component the component to be displayed when this tab is clicked */ public void addTab(String title, Component component) { -
Reload previous page on back button - using cache control
Hi,
In my application I am using cache control to avoid the pages to be cached. But the requirement is changed and now the previous page can be re-loaded on hittinh browser's back button even after the 10 mins. i.e if user hits the back button with in 10 mins he should be allowed to see the pre-loaded contents on the previous page. After 10 mins the browser should display the page refresh warning.
a) Old code to preventing caching:
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", -1); //prevents caching at the proxy server
b) I am trying with the code ha changes as to get the previous page with in 10 minutes time:
response.setHeader("Cache-Control","no-cache, max-age=600"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
The above code changes are not working. If uses "no-cache" with max-arg=600 it behaves like the code in section a).
If I uses response.setHeader("Cache-Control","max-age=600"); then even after 30 mins it load the previous page with preloaded contents.
Any help is appreciated.I tried it lots of time by refreshing the browser's cache. I am using IE 6.0. I tested it through FireFox to get the header details. when I submit the request it displays the headers request
same as I set in the code. But when I hit the back button (after the max age time passed) still it gets the value from cache and no header values are displayed.
Maybe you are looking for
-
How can I get my mailbox on my macbook pro to work by now switching to Icloud?
I had a mobile me account to my mailbox on my MacBook Pro. Now it switched over to Icloud. And my mailbox does not work. Is it possible to make it connect to my Icloud mail so I do not have to go to the website? Thanks!
-
Oracle 9i and 11g installation on same windows machine
Hi All, I am facing strange problem, I installed 9i and 11g on same machine whiche is runng windows server 2003 service pack 2. I set ORACLE_HOME and PATH of both versions different and both are installed properly. But when i try to create new databa
-
DB Adapter inserting data in to regular tables and LOG / History tables
I have a requirement of reading a XML file using the File Adapter and inserting into Data base. I'm using File Adapter --> Mediator --> DB Adapter When I insert the data I have to insert in to regular tables and LOG / History tables the same data. Th
-
Has anyone been able to successfully use Haloscan to allow for comments on iWeb created pages? I can't get it to work. If you have, please tell me where to insert the code. Thanks!
-
*MUST READ!!!* HOW NOT TO ERASE YOUR FILES WHEN SYNCING ON A NEW COMPUTER
Oh my GOD!! This is the biggest breakthrough since the discovery of fire. Ever have a time when you had to erase ALL your files on your ipod/iphone/ipad because you are changing computers or your computer was destroyed? There is a solution. ****This