新闻详情

如何制作页面后退、前进、刷新的代码

2916 2009/5/15

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>无标题页</title>
<script language="javascript">
function back()
{
    history.go(-1);  //后退1页
}
function forward()
{
    history.go(+1);  //前进1页
}
function refresh()
{
    history.go(-0)  //刷新
}
</script>
</head>
<body>
<input type=button value=后退 onClick="back()">
<input type=button value=刷新 onClick="refresh()">
<input type=button value=前进 onClick="forward()">
<br/>
       e维网络
        
      <h1 >
        安全性最佳做法</h1>

</body>
</html>

相关资讯

18973218026
返回顶部