欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

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

发布时间:2025/7/25 编程问答 65 豆豆
生活随笔 收集整理的这篇文章主要介绍了 实现网页中增加刷新按钮、链接的方法 搜集 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

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

搜集:

<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

总结

以上是生活随笔为你收集整理的实现网页中增加刷新按钮、链接的方法 搜集的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。