I would like to understand more about how to capture if a user click on the back button of the browser, and what are the basic tecniques to handle it.
As an example of this do you know how to redirect (for instance) to the user to the home page if the back button is pressed?
You can’t and you shouldn’t. Users expect their back button to work in a certain way, changing this breaks this behaviour. Bad, bad.