点击button刷新的几种常用代码(marksheng)

点击button刷新的几种常用代码:

1、<input type=button value=刷新 οnclick="history.go(0)">

2、<input type=button value=刷新 οnclick="location.reload()">

3、<input type=button value=刷新 οnclick="location=location">

4、<input type=button value=刷新 οnclick="location.assign(location)">

5、<input type=button value=刷新 οnclick="document.execcommand(refresh)">

6、<input type=button value=刷新 οnclick="window.navigate(location)">

7、<input type=button value=刷新 οnclick="location.replace(location)">

8、<input type=button value=刷新 οnclick="window.open(自身的文件,_self)">

9、<input type=button value=刷新 οnclick=document.all.webbrowser.execwb(22,1)>

猜你喜欢

转载自blog.csdn.net/qq_37430247/article/details/115095468
今日推荐