473,790 Members | 3,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable browser forward and back buttons

1 New Member
I want the source code in javascript to disable browsers back & forward button
Sep 14 '07 #1
3 1907
gits
5,390 Recognized Expert Moderator Expert
hi ...

welcome to TSDN ...

i've moved your post from the js-articles-section to the js-forum ... please don't post questions in the articles section ...

kind regards
Sep 14 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
Changed the thread title to better describe the problem.

Please use a good thread title.
Sep 14 '07 #3
gits
5,390 Recognized Expert Moderator Expert
hi ...

you shouldn't do that ... the buttons have their purpose and users expect them to be functional ... so it is annoying for them when you change this behaviour. however you cannot disable the buttons but you may react to the onbeforeunload-event and call some js-statements:

[HTML]<body onbeforeunload= "alert('lea ving page');">[/HTML]

kind regards
Sep 14 '07 #4

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

Similar topics

2
2503
by: Susan | last post by:
Basically, I am trying to add a back and forward button to my AxWebBrowser so I'm trying to use ShowBrowserBar. Has anyone ever used the command this.axWebBrowser1.ShowBrowserBar(ref object pvaClsid, ref object pvarShow, ref object pvarSize); I'm wondering what I'm supposed to send in as paramenters. Or if there is a better way to do what I'm trying to do. Thank you. Susan
1
6021
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.
1
1802
by: Jimmy | last post by:
I want to hook the "back" event or "forward" event from a browser page. How can I trigger these events to my asp.net page? ch Jimmy
2
5152
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...
0
2520
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser functionality where the ‘mini-browser’ has similar functionality to a normal browser. Let me explain: Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
5
3311
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
3467
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
6282
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...
6
29631
by: sspost | last post by:
how can i disable the back button for a browser? I have been reading a lot of forums but cant find any answer to it...other than opening up the page, in which i want to disable the browser in a new window(which i dont want to do) Is their a way to do it? using javascript or something? I have tried using the following but non of them actually disable the back button: window.history.forward(1); -- does not disable the back button
0
9666
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
10419
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
10201
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
10147
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
9023
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
7531
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
6770
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
5424
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...
2
3709
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.