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

2019-12-24,,,,

复制代码 代码如下:
<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>

您可能感兴趣的文章:

  • JS实现点击按钮获取页面高度的方法
  • jQuery中iframe的操作(点击按钮新增窗口)
  • javascript实现点击按钮弹出一个可关闭层窗口同时网页背景变灰的方法
  • Android中关于百度糯米app关闭网页或窗口的方法(99%人不知)
  • 在微信、支付宝、百度钱包实现点击返回按钮关闭当前页面和窗口的方法

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

下载本文的Word格式文档,以方便收藏与打印。