天天看點

js控制浏覽器前進後退

<a href="javascript:history.back(-1)" target="_blank" rel="external nofollow" >後退</a>

<a href="javascript:history.back(1)" target="_blank" rel="external nofollow" >前進</a>

<a href="javascript:window.location.reload()" target="_blank" rel="external nofollow" >重新整理</a>

<a href="javascript:document.execCommand('stop')" target="_blank" rel="external nofollow" >停止</a>

<a href=about:home>傳回首頁</a>

設為首頁:

<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://blog.sina.com.cn/huaiblog1');">設為首頁</a>

加入收藏

<span style="CURSOR: hand" onClick="window.external.addFavorite('http://blog.sina.com.cn/huaiblog1','Miracle')" >加入收藏</span>

設為首頁

<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://blog.sina.com.cn/huaiblog1');"><img src="Images/About_2.gif" width="84" height="19" /></a>

加入收藏

<a href=#><img src="images/A_2.jpg" width="150" height="39" id="shoucang" onClick="window.external.addFavorite('http://blog.sina.com.cn/huaiblog1','Miracle')" /></a>

繼續閱讀