当前位置:首页 > 设计在线 > 网页设计 > Javascript > 实现页面中按钮刷新的N种方法

实现页面中按钮刷新的N种方法

点击次数:21 次 发布日期:2008-11-26 22:36:57 作者:源代码网
源代码网推荐

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


源代码网供稿.
网友评论 (0)
会员中心
设计在线
本站推荐
设计在线之精华