Detect browser back button in Salesforce visualforce page
<p>How to control or detect or show pop up on browser back button click.
I have two visual force pages on second vf page save we redirect to Record detail page. If user clicks on browser back button then it return to vf page. How to stop or any solution for this. </p>