+ Start a Discussion

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.
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