473,467 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Create 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.replace(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.javascript 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 982
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...@dotinternet.bewrote:
-----------------------------------------------------------------------
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.replace(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.javascript 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
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
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
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...
1
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
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...
6
by: me2tech | last post by:
Please let me know how to disable back button in Browser
1
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
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
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
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"> ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
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...

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.