473,847 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable Forward & Back Navigation

90 New Member
Hi All,
I need to disable the BACK & Forward Navigation of Browser toolbar for my application .Please help me how to do it.
Regards
Gyanendar
Mar 17 '08 #1
5 2091
gits
5,390 Recognized Expert Moderator Expert
have a look at the answer here

kind regards
Mar 17 '08 #2
gyanendar
90 New Member
have a look at the answer here

kind regards
Thanks for the reply.

Any way my main requirement was if I can't disable it than hide the toolbar for application.
So, I open the application by using window.open() in first page and close the opner.
Regards,
Manohar
Mar 19 '08 #3
gits
5,390 Recognized Expert Moderator Expert
yes ... that would be one of the workarounds ... did you check whether the backspace-key might make a problem ... be sure to have no control focused in your page and press backspace ... usally that triggers the back-action ... ynd you may want to suppress that event?

kind regards
Mar 19 '08 #4
gyanendar
90 New Member
yes ... that would be one of the workarounds ... did you check whether the backspace-key might make a problem ... be sure to have no control focused in your page and press backspace ... usally that triggers the back-action ... ynd you may want to suppress that event?

kind regards
Yes.. by pressing backspace ,back-action event is triggered.Prese ntly I m not able to suppress the event.
It will be nice ,if I am able to do so ,

Regards,
Manohar
Mar 19 '08 #5
gits
5,390 Recognized Expert Moderator Expert
ok ... :) let me give you an example to avoid that in firefox/mozilla:

Expand|Select|Wrap|Line Numbers
  1. var event_keypress = function(e) {
  2.     var whitelist = { 'input': 1, 'textarea': 1 };
  3.     var target_n  = e.target.tagName.toLowerCase();
  4.  
  5.     if (e.keyCode == 8 && !(target_n in whitelist)) {
  6.         e.preventDefault();
  7.     }
  8. }
  9.  
  10. document.addEventListener('keypress', event_keypress, true);
  11.  
this has to be adapted for IE which uses attachEvent() instead of addEventListene r() ...

kind regards
Mar 19 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
629
by: Ashvin Navare | last post by:
Hi, We want to disable BACK & FORWARD button of the browser so that user is forced to navigate through the menu options provided in the site. The browser used is Internet Explorer only. Please suggest some solution or any other alternate approach. Early response is appreciated. Regards,
2
1522
by: eje | last post by:
How can I disable the Back and Forward navigation buttons in Explorer from my .NET application? Eje
1
6027
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have discovered that my web app is definately NOT Back/Forward safe. It's really messing with my SQL data bigtime. Thanks.
8
6528
by: Tracey | last post by:
Hi, guys. My application requires functionalities like back and forward navigating button on winforms. And there are many forms linking each other. Each form has a pair of buttons of "Back" and "Forward "How can I implement the back and forward procedure to make them work ? Is there anyone has the same experience like that ? Thanks
16
6279
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
5156
by: Mirovk | last post by:
Hi, I would like to disable the navigation bar in IE to force my web users to use the application´s navigation buttons. Ideas welcome, Thanks...
5
3312
by: Sehboo | last post by:
In my application, there are lot of processes which take several seconds. What we want is that once user clicks on a button (or link or whatever) and while we are processing that request, we don't want user to do anything else on the page. We want to disable everything. I have following javascript on all of my pages (which is supposed to work), but it doesn't work. <script language="JavaScript"> function ignoreinput() { return false;
3
3473
by: Laurahn | last post by:
Hi: I don't know if it 's possible change the behavior of the IE from asp .net app. I would like the back and forward button be disabled when the users navigates in the asp app. or disable all the navigation toolbar? could it be done with javascript code? could it be possible for mozilla too?
4
6284
by: John | last post by:
Hi everybody, for my web-application (it must currently work only under IE6) I have a servlet that intercepts user's HTTP GET requests for a typical search result page, which contains a paging mechanismus for navigating between the result pages (e.g. << 1 2 3 4 5 ... >). When the user clicks on this navigation, the JSP send a GET request to a servlet wich does some buisiness logic - in particular it logs (with log4j) how many times an...
0
9730
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
10648
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
10707
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
10341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9485
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...
0
7056
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
5719
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
4529
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
4119
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.