Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to show a pop up saying 'You are not allowed to click browser's back button' on click of browser's back button.
This should happen ONLY on existing web page and also ONLY on browser's back button click. Dont want this to happen on any other controls' click event.

Please help.
Posted

1 solution

 
Share this answer
 
Comments
NishaNR 17-Oct-13 5:43am    
Hi,
onbeforeunload will execute on every controls' click which make a page navigation. That should not happen. Actually I have a button to go to previous page. So I want the user to know about that by giving a message on browser back button click.
Jitendra Sabat 17-Oct-13 6:10am    
Go through the material in detail.You have to go for client side scripting as well as server side scripting for this task.Please, go through the prescribed material in detail.

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