实现网页中增加刷新按钮、链接的方法 搜集

最近用到一个技术,实现在网页中添加“刷新”超链接的方法,在网上搜集了一些,但是都是按钮形式的,悲剧,经过尝试,发现稍加改动,放在超链接上效果甚好!

搜集:

<input type=button value=刷新 onclick="history.go(0)">
<input type=button value=刷新 onclick="location.reload()">
<input type=button value=刷新 onclick="location=location">
<input type=button value=刷新 onclick="location.assign(location)">
<input type=button value=刷新 onclick="document.execCommand(@#Refresh@#)">
<input type=button value=刷新 onclick="window.navigate(location)">
<input type=button value=刷新 onclick="location.replace(location)">
<input type=button value=刷新 onclick="window.open(@#自身的文件@#,@#_self@#)">
<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>

小测试:

<a href="#" onclick="history.go(0)"><font size=3 color=white>刷新</font></a>

投石引玉...抛砖引玉

 

posted @ 2012-09-13 11:02  魏飞  阅读(718)  评论(0编辑  收藏  举报
你见

或者不见我
我就在那里
不悲不喜
你念

或者不念我
情就在那里
不来不去
你爱

或者不爱我
爱就在那里
不增不减
你跟

或者不跟我
我的手就在你的手里
不舍不弃
来我怀里
或者
让我住进你的心里
默然

相爱
寂静

喜欢
Mr Frank