保哥笔记

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

 

因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合AMP标准。