Browser back button detect and reaload

Browser back button detect and reaload


Hi 

I need to check the action browser back and forward.
If one of them clicked. reload the page either with the confirmation or without confirmation .

Pls help