实现网页中增加刷新按钮、链接的方法 搜集
生活随笔
收集整理的這篇文章主要介紹了
实现网页中增加刷新按钮、链接的方法 搜集
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
最近用到一個技術,實現在網頁中添加“刷新”超鏈接的方法,在網上搜集了一些,但是都是按鈕形式的,悲劇,經過嘗試,發現稍加改動,放在超鏈接上效果甚好!
搜集:
<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>投石引玉...
?
轉載于:https://www.cnblogs.com/Wfei/archive/2012/09/13/2682985.html
總結
以上是生活随笔為你收集整理的实现网页中增加刷新按钮、链接的方法 搜集的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 爱情,这种高级玩意儿--一个码农的自白
- 下一篇: Timer TimeTask Handl