当前位置: 首页 > 图文教程 > 网页制作 > HTML/XHTML教程 > 实现页面中按钮刷新的N种方法

HTML/XHTML教程
测试Flash和HTML5 Flash是CPU杀手?
ZF HEADLINK相关的HTML link标签 rel 属性

HTML/XHTML教程 中的 实现页面中按钮刷新的N种方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-04   浏览: 41 ::
收藏到网摘: n/a

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