点击按钮或链接不跳转只刷新页面的脚本整理
更新时间:2013年10月22日 15:26:12 作者:
点击按钮或链接时不跳转只刷新页面,在某些情况下还是比较实用的,下面整理些不错的示例,感兴趣的朋友可以参考下
复制代码 代码如下:
<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>
相关文章
基于RequireJS和JQuery的模块化编程日常问题解析
本文是小编日常收集整理些有关RequireJS和JQuery的模块化编程,感兴趣的朋友一起学习吧2016-04-04
layui问题之模拟table表格中的选中按钮选中事件的方法
今天小编就为大家分享一篇layui问题之模拟table表格中的选中按钮选中事件的方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧2019-09-09


最新评论