blocking browser back button

I still have a lot of users hitting back in the browser to go to a previous page. If I recall there was some code posted to block the back button or popup a message to ask them if they really want to do it. For the life of me I cannot find it. Anyone know?


I think its to do with this

I think you want this: