function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

To Disable Browser Back button..



I have a small doubt Regarding Browser Back button.


How to Disable Browser Back Button......

Can anyone suggest me how to do this in visualforce page...


I'll start of with saying that I don't know how to do so. But I'm curious as to why you would want to do that ? As user I personally wouldn't be very happy if a website did that to me.







You can't actively disable the back button; no page can actually do this, as a matter of browser design. automatically provides "back protection" on all standard pages by using 302 redirects. Visualforce pages that have multiple steps are not back-safe and users will receive "resubmit confirmation" messages on those pages. To provide this level of protection would require using HTML5 syntax on your pages, and calling each function through actionFunction JavaScript and maintaining state within JavaScript, a relatively daunting task for all but the simplest pages.