300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > 实现网页中增加刷新按钮 链接的方法 搜集

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

时间:2018-09-21 05:13:52

相关推荐

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

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

搜集:

<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>

投石引玉...

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。