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

来源:岁月联盟 编辑:exp 时间:2012-05-29

方法一:

 

<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')" />

 

 

摘自 爱智旮旯