利用浏览器的缓存实现类似于浏览器的向前向后功能
<input id="btnBack" type="button" value="Back" language="javascript" onclick="fnBack()" /> <input id="btnForward" type="button" value="Forward" language="javascript" onclick="fnForward()" function fnBack() { history.go(-1); //GOES BACK BY ONE PAGE } function fnForward() { history.go(1); //GOES FORWARD BY ONE PAGE }