网络编程
位置:首页>> 网络编程>> JavaScript>> 实现页面中按钮刷新的N种方法

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

  发布时间:2007-02-03 11:06:00 

标签:刷新

 

<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
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com