posts - 325,  comments - 25,  trackbacks - 0
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 长春语林科技 阅读(172) 评论(0)  编辑  收藏 所属分类: js

只有注册用户登录后才能发表评论。


网站导航:
 
<2008年7月>
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

 

长春语林科技欢迎您!

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜