Disabling Browser Navigation + Refresh Button

K

Kapil Jain

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.
 
V

VK

Kapil said:
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.

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.
 
R

Richard Cornford

Kapil said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top