window.location=
www.hostname.com;
window.location.hash="#chapter1";
url:www.hostname.com#chapter1
location.reload(true);
location.replace(url);
<a href="page1.html">page1</a>
<a href="page2.html>page2</a>
<a .href="javascript:void(0)" onclick="location.replace('page3.html')">page3</a>
當用戶依次點擊這三個聯接時,歷史記錄會保留page1,page2信息,在到達第三個page2.html時再點擊后退,會退到page1.html
history.back()==history.go(-1);
history.forwartd()=history.go(1);
history.go(-2)
posted on 2008-07-16 21:56
長春語林科技 閱讀(180)
評論(0) 編輯 收藏 所屬分類:
js