how to disable refresh button?

G

Guest

Hi,

I want to disable teh refresh button on my pop window. Whenever I right
click, my pop up window, the 'Refresh' button should be disbaled....

Can anyone help me on this....

any javascript functions to be included?
 
S

Steve C. Orr [MVP, MCSD]

You may be able to disable the context menu but you cannot prevent a user
from refreshing a page... they can still press F5.
Therefore you may need to put in some custom code in some cases to detect a
refresh so you don't duplicate sensitive requests.
 
J

Jon Delano

I know this is old ... but maybe it will help someone..

You could just not display the menu when the user right clicks the window.

In the body of the page use oncontextmenu="return false;"


In the body of the page
 

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

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top