Javascript网页刷新方法集锦(测试通过)

方法一:

 

<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="window.navigate(location)">

 

方法五:

 

<input type=button value=刷新 onclick="location.replace(location)">

 

方法六:

 

<input type=button value=刷新 onclick="document.execCommand('Refresh')" />

 

方法七:

 

<input type=button value=刷新 onclick="window.open('Default.aspx','_self')" />

posted @ 2012-05-28 11:36  爱智旮旯  阅读(405)  评论(0编辑  收藏  举报