<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)>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
<form action="自身的文件">
<input type=submit value=刷新>
</form>
<a id=a1 href="自身的文件"></a>
<input type=button value=刷新 onclick="a1.click()">
11种刷新按钮的方法
最新推荐文章于 2023-07-16 17:39:23 发布
博客展示了在HTML中实现页面刷新的多种方法,包括使用input按钮结合不同的JavaScript代码,如history.go(0)、location.reload()等,还涉及OBJECT标签、form表单以及a标签的点击触发刷新,为前端页面刷新提供了多样的实现思路。
以下是代码片段:
6506

被折叠的 条评论
为什么被折叠?



