How do you capture browser back button

Posted by Jennifer | Updated on

The window.onbeforeunload method is used to capture browser back button events. This is helpful to warn users about losing the current data.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers