html中跳转方法(含设定时间)
2013-09-12 11:39
85 查看
脚本方式
如:
<script language="JavaScript" type="text/JavaScript">
<!--
window.location='index.html';
//-->
</script>
html的meta方式
如:
<meta http-equiv='Refresh' content='0;URL=index.html'>
这种方法的好处是可以控制重定向的时间
<meta http-equiv="refresh" content="5;URL=http://www.tiansha.net">
content="5:设自动刷新的时间为‘5秒’
作用:可做成两种形式的效果1、自动跳转2、每隔几秒刷新当前页
注:请将本段代码插入:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
>请将本段代码插入当前位置<
<title>www.tiansha.net</title>
</head>
如:
<script language="JavaScript" type="text/JavaScript">
<!--
window.location='index.html';
//-->
</script>
html的meta方式
如:
<meta http-equiv='Refresh' content='0;URL=index.html'>
这种方法的好处是可以控制重定向的时间
<meta http-equiv="refresh" content="5;URL=http://www.tiansha.net">
content="5:设自动刷新的时间为‘5秒’
作用:可做成两种形式的效果1、自动跳转2、每隔几秒刷新当前页
注:请将本段代码插入:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
>请将本段代码插入当前位置<
<title>www.tiansha.net</title>
</head>
相关文章推荐
- HTML页面跳转的5种方法
- html:iframe的跳转方法
- HTML页面跳转的多种实现方法
- html 页面内锚点定位及跳转方法总结
- HTML网页中的html body onload自动跳转方法介绍及自动跳转代码示例
- HTML页面跳转的5种方法
- HTML页面跳转的5种方法
- HTML实现页面自动跳转的五种方法
- HTML页面跳转的5种方法
- html页面常规跳转的两种方法table td控制
- HTML页面跳转的5种方法
- HTML页面跳转的5种方法
- TP3.2 thinkPHP3.2框架U方法拼接 HTML页面路径跳转
- html页面内锚点定位及跳转方法总结
- html 页面内锚点定位及跳转方法总结
- HTML页面跳转的5种方法
- HTML页面自动跳转的五种实现方法
- HTML页面自动跳转的五种实现方法
- ios App加载本地HTML网页,点击网页链接跳转到app页面的方法
- html 页面内锚点定位及跳转方法总结