首页 > 网站 > WEB开发 > 正文

HTML:网页刷新方法集合

2024-04-27 13:56:11
字体:
来源:转载
供稿:网友

代码如下:
<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="window.navigate(location)">
代码如下:
<input type=button value=刷新 onclick="location.replace(location)">


下面这三种我就不知道该怎么用了,就把代码放在下面吧,哪位要是会的话,可教教大家。
<input type=button value=刷新 onclick="document.execCommand(@#Refresh@#)">
<input type=button value=刷新 onclick="window.open(@#自身的文件@#,@#_self@#)"> <input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表