Click here to Skip to main content
14,920,935 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I need to disable the refresh button click function in firefox using javascript.Is there any way to disable the function.Please help me

Thanks in advance

1 solution

AFAIK, you cannot prevent a refresh, but what you can do is use the session object to detect if this is the first time or a refresh and if it is a refresh keep everything the same.
kutz 2 11-Jul-11 6:10am
Thanks for your valuable information.But I don't think it can solve my issue.Because when I click the refresh button first time it will load the correct page but after that(within milliseconds) it is not loading my actual page.So inorder to solve this disable the refresh function and manually load the main page.Please reply..
Sergey Alexandrovich Kryukov 11-Jul-11 21:12pm
Is "you cannot prevent a refresh" not enough for you? Why do you think your issue should be solved if it is not solvable?

Nagy gets my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900