fires the moment the back function is triggered
some.attachEvent("onBeforeBack", function(){ //... some code here ... });