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-06-12 15:09  zhangchun  阅读(249)  评论(0编辑  收藏  举报