首页 > 其他 > 详细

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

时间:2017-03-10 16:30:27      阅读:220      评论:0      收藏:0      [点我收藏+]

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

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

原文:http://www.cnblogs.com/GoCircle/p/6531056.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!