当前位置:编程学习 > JAVA >>

点击按钮或链接 不跳转刷新页面

<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>
           .
           .
补充:web前端 , JavaScript ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,