473,804 Members | 3,425 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 1069
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
7348
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
1024
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
1198
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
3995
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
2945
by: me2tech | last post by:
Please let me know how to disable back button in Browser
1
1136
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
2880
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
1452
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
3816
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
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10561
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...
1
10302
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
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
5505
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...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
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.