实现页面中按钮刷新和后退的N种方法
网上找的实现页面中按钮刷新的N种方法 :
<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)>
<input name='ht' type='button' onclick='javascript:history.go(-1)' value='后退' />
<input name='qj' type='button' onclick='javascript:history.go(1)' value='前进' />
<a href='javascript:history.go(-1)'>后退</a>
<a href='javascript:history.go(1)'>前进</a>

浙公网安备 33010602011771号