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
长春语林科技 阅读(177)
评论(0) 编辑 收藏 所属分类:
js