张文保的博客
保哥笔记

技术性SEO实战经验分享博客

张文保微信

button刷新页面的几种方式

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

 

TAG标签
刷新页面

本文标题:《button刷新页面的几种方式》
本文链接:https://zhangwenbao.com/button-refresh-page.html
版权声明:本文原创,转载请注明出处和链接。许可协议:CC BY-NC-SA 4.0
发表新评论