473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabling Browser Navigation + Refresh Button

Dear All,

I would like to disable back and forward button + Refresh button.
Please help in doing this. I want this because i am displaying data
from mysql database and on back and forward button complete logic get
failed.

Also i would like disable save as option + copy & select all option.
Please urgently help me.

Regards,
Kapil.

Feb 21 '06 #1
2 9566
VK

Kapil Jain wrote:
Dear All,

I would like to disable back and forward button + Refresh button.
Please help in doing this. I want this because i am displaying data
from mysql database and on back and forward button complete logic get
failed.
<http://www.jibbering.c om/faq/#FAQ4_2>
Also i would like disable save as option + copy & select all option.
<http://www.jibbering.c om/faq/#FAQ4_1>

Please urgently help me.


Stop thinking of a web application in terms of desktop application. You
cannot prevent users from navigation, abnormal exit (like click on [x]
w/o exiting from the session) or copy/print current code.

Adjust your solution for the *web application* logic (state snapshots,
cookies).

Do not expose any security sensitive data on the client-side.

Provide a copyright notice (just don't go too heavy on it :-)
explaining what user may and what may not do with your data and
interface.

Feb 21 '06 #2
Kapil Jain wrote:
Dear All,

I would like to disable back and forward button + Refresh button.
Maybe, but if you think about it a little you would also see a need to
disable the related functionality available through context menus,
keyboard shortcuts, mouse gestures and any alternative provided by the
browser or available as an add-on.

You cannot even predict the available navigation and refresh options
available to the user, let alone circumvent all of them. And if it is
really necessary to disable any one method it is equally important to
disable all of them.
Please help in doing this.
I cannot do that, I can help you avoid wasting your time trying, and
recommend that you direct your efforts toward achieving a design that
has no undesirable consequences when the user employs the browser
features available to them, and encourage them to use those features in
an informed manner in the context of your code.
I want this because i am displaying data from mysql database
and on back and forward button complete logic get failed.
Then more considered an robust logic is called for.
Also i would like disable save as option + copy & select
all option.
Why?
Please urgently help me.


Will you recognise help when given?

Richard.
Feb 21 '06 #3

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

Similar topics

3
2081
by: Bond | last post by:
how do I know when the browser is making a request to the server? I am not having an onclick event for EVERY hyperlink, submit, etc. There must be some javascript function that I can overwrite that will allow me to do something when the browser requests something from the server. My plan is whenever a browser is about to request...
7
5649
by: milkyway | last post by:
Hello to all ;-) I am using the Visual Studio 2005 .NET framework. Basically, I have file that is served up as an HTML file on the client side (generated from a .aspx file). But - the HTML file is using javascript to implement a button click (on the client side). Ex: <INPUT onclick="alert('about to start'); process_table('FrmX1',
1
1504
by: JBD | last post by:
Hi, I have a button that fires the below sub routine. This works fine if the user clicks the button as they are supposed to, even if they click it repeatedly. However, if you click "refresh" on the browswer, then it duplicates records. I believe this is happening because somehow it isnt doing the first part of my code which is to to an...
5
13088
by: Selden McCabe | last post by:
I have a page that displays a picture. In the page load I figure out which image and then do a StudentPicutre.imageurl = <some file name> But if you use the browser's back button, enter different criteria, then click the view button, the code runs to load a different picture, but the old one shows up until I hit the browser's refresh...
18
7421
by: seth.m.green | last post by:
<a href="javascript: void(0);" onclick="window.location.href='/foo.bar?one=false&two=true'">Link</a> works like a charm in Firefox. I get NOTHING in IE. but if I replace the javascript: void(0) with just a #, then it works in IE. wtf? Any help.
11
12096
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache"> This tags are part of the...
15
1964
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is: ************************************************************ Namespace StevenBey.Web.UI Public Class Page Inherits System.Web.UI.Page
0
3515
by: sagarp86 | last post by:
How to lock / deactivate "Refresh" and "Back" button on browser. Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database. But when we click on "Refresh" button on the browser, the query is fired again and again one vote is added un-necessarily..Only one vote should be...
0
2495
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...
0
7518
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...
0
7711
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. ...
0
7954
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...
0
7805
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...
0
6039
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...
0
5085
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...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
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
0
755
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...

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.