页面中按钮刷新的几种方法

   <input onclick="history.go(0)" type="button" value="刷新" />
 
    <input onclick="location.reload()" type="button" value="刷新" />
 
    <input onclick="location=location" type="button" value="刷新" />
 
    <input onclick="location.assign(location)" type="button" value="刷新" />
 
    <input onclick="document.execCommand('Refresh')" type="button" value="刷新" />
 
    <input onclick="window.navigate(location)" type="button" value="刷新" />
 
    <input onclick="location.replace(location)" type="button" value="刷新" />
 
    <input onclick="window.open('自身的文件','_self')" type="button" value="刷新" />
 
    <input onclick="document.all.WebBrowser.ExecWB(22,1)" type="button" value="刷新" />

相关内容:

Leave a comment

15 Comments.

  1. 很不错的分享,谢谢 :razz:

  2. :mrgreen: 板凳 谢谢分享

  3. 这个真是好东西 呵呵 用得着呢

  4. 百度搜索过来的 这个对我帮助很大

  5. 这个不错,很有用的

  6. 这些都是蛮实用的。至少可以了解下哦。

  7. 嘿嘿,来晚了,再来顶一下。

  8. 每一次来都能学到新知识

  9. 每次来看都能学点东西,真好。。

  10. 来看看,你的博客就像一本词典,呵呵·~~

    顺便点点AD。 :mrgreen:

  11. visibility的hidden就是:you can’t see,but it’s there.
    display的none:everything has gone.

发表评论

您的电子邮箱不会被公开。 标记为 * 的区域必须填写

*


您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

有人回复时邮件通知我