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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2020-05-13 我要评论
复制代码 代码如下:

<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>

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们