http://www.boutell.com/newfaq/creating/backbutton.html

qui fornisce una buona idea