源码天下

源码天下 -> 技术文档 -> WEB开发 -> HTML技术 -> 文章内容

HTML教程:网页刷新方法集合



作者:佚名  来源:本站收集  发布时间:2008-4-27 20:38:46  发布人:wongrs

代码如下:

<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(@#自身的文件@#,@#_self@#)">

<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>


[] [返回上一页] [打 印] [收 藏]

上一篇文章:Html:Bad Tags — 有害的标签
下一篇文章:Html:浅议Web网页Form表单设计技巧
中国福网提供带宽支持