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
udayar_jayamudayar_jayam 

disable backbutton image of the browser in Sites

Hi All
I have create a site for case creation,the case is created and show a success message when i hit backspace image button on browser its going back to orginal page.how can i prevent the user hit backspace button and browser in Sites. How can solve this issues.
bob_buzzardbob_buzzard
This is browser behaviour rather than anything to do with Salesforce/Visualforce, so you'd need to trap the backspace key in the browser through JavaScript and block the standard behaviour.

There's more discussion and code at : http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back
Sonu SainiSonu Saini
Perfect Answer..... @ bob_buzzard