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