473,694 Members | 2,885 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FAQ Topic - How can I disable the back button in a web browser? (2008-04-17)

-----------------------------------------------------------------------
FAQ Topic - How can I disable the back button in a web
browser?
-----------------------------------------------------------------------

You can't. The browser's history cannot be modified. However, you
can use ` location.replac e(url); ` in some browsers to replace
the current page in the history.

http://msdn2.microsoft.com/en-us/library/ms536712.aspx

http://docs.sun.com/source/816-6408-...on.htm#1194240
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javas cript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.

Jun 27 '08 #1
1 997
By using appropriate cache-control http header, you can force browser
to reload your document from server when user hits "Back", and ignore
cached page.
On Apr 17, 6:00*am, "FAQ server" <javascr...@dot internet.bewrot e:
-----------------------------------------------------------------------
FAQ Topic - How can I disable the back button in a web
browser?
-----------------------------------------------------------------------

You can't. The browser's history cannot be modified. However, you
can use ` location.replac e(url); ` in some browsers to replace
the current page in the history.

http://msdn2.microsoft.com/en-us/library/ms536712.aspx

http://docs.sun.com/source/816-6408-...on.htm#1194240

--
*Postings such as this are automatically sent once a day. *Their
*goal is to answer repeated questions, and to offer the content to
*the community for continuous evaluation/improvement. *The complete
*comp.lang.java script FAQ is athttp://jibbering.com/faq/index.html.
*The FAQ workers are a group of volunteers. *The sendings of these
*daily posts are proficiently hosted byhttp://www.pair.com.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
478
by: ourspt | last post by:
Hi, We are working on a .NET application (ASP.NET/VB.NET). We need to suppress (disable) the 'Back' button in the menu of the browser. What is the way to do that? Thanks in advance oursmp
3
7341
by: sonu | last post by:
I want to disable the browser referesh and back button. is there any way in .net for above. Regards Amit
2
1020
by: zyaam | last post by:
hi If a user logs into an aspx applicaiton and in the same browser goes to some other site say google.com and when he presses back button, he is able to come back to the application since the session values are still alive. How to make redirect the user to another page if he tries to enter into the application as in the above manner. I donot want the back button to be disabled.
1
1195
by: JIM.H. | last post by:
Hello, How can I disable Back button in the internet explorer for my ASP.Net C# application. Thanks,
9
3989
by: Joe Delphi | last post by:
Hi, When users log out of my web application, I want to disable the back button so that they cannot "back into" the application after they have logged out. Can someone tell me the best way to do this? JD
6
2936
by: me2tech | last post by:
Please let me know how to disable back button in Browser
1
1123
by: manojhardwani | last post by:
I don't want users to use back button in web browser, if this is possible, when users click back button the message 'Page is Expired' should be given.
3
2871
by: romeo971987 | last post by:
disable back button..... page should no do postback... i used history.go, history.back, session.abandon...and many more...but still previous page shows.... help me to expire the previous page.......
3
1441
by: abhishekbrave | last post by:
Is it possible to disable back button of a browser in java script. Any pointers will be very helpful so that I can do some workaround on the same
2
3801
by: SwapnilD | last post by:
How tdo I disable a back button for SAFARI browser... I tried below mentioned code but it only works for IE and I want it to disable only for SAFARI. <SCRIPT language="javascript"> if(window.history.forward(1) != null) window.history.forward(1); </SCRIPT> Thanks in advance.
0
8616
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9110
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8971
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5825
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4332
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2992
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2249
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.