我借用jquery实现了这种效果,但并没有禁用掉浏览器本身的“前进”按钮,以下是代码,希望有用的朋友借鉴以下:
$(function () { jQuery(window).bind("unload", function () { history.go(-1); }); });