首页 > 编程 > JavaScript > 正文

点击按钮或链接不跳转只刷新页面的脚本整理

2019-11-20 21:51:51
字体:
来源:转载
供稿:网友
复制代码 代码如下:

<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="javascript:void(0)" onclick="history.go(0)"></a>

<a href="javascript:void(0)" onclick="location=location"></a>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表