i want to disable right click,F5 and Referesh page by Browser url.
or Back Button .
disable all these events to refresh page.
Hi iammann,
Its not possible to disable refresh, forward, backword button of address bar. You can only do the alternative for this. Refer below link.
https://stackoverflow.com/questions/21090972/disable-refresh-back-forward-in-own-browser/21091401#21091401
i have tried this code.bt when i am refershing from browser url its not working.
i want to disable also from browswer url.if someone enter on browser url then dont refresh page.or navigate to the login page.
Not possible. These are inbuild functionality of each browser. You cant do that. Only you can show alert message before unload the page. According to that you need to provide alert messsage.
Have you ever make a reservation on irctc.there is they are redirecting page if somenone refresh the page from address bar.
You can disable right click in browser using below article. But you can't disable for address bar. The only way is to show confirm message and if continue then redirect to login page as irctc does by displaying confirm dialog as Confirm Form Resubmission.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.