网页自动跳转的方法
2011-04-25 15:25
267 查看
1. 使用 meta 标签
<meta http-equiv="refresh" content=“‘5’;url=http://www.marsorstudio.cn/">
其中: content = “5”,表示5秒钟以后进行跳转,写成 0 表示立即跳转。 一定注意content的写法是 “ '秒数' ; url=xxxxxxx ”
2. 使用JavaScript
这个就比较灵活了,可以有很多中写法。
抛砖引玉吧。
使用Jquery $(document).ready(function(){window.location="http://www.marsorstudio.cn";});
甚至直接写这句 window.location="http://www.marsorstudio.cn"; 都可以。注意放在<script></script>标签中哦。
这里甚至可以做Post。写一个javascript,来做个表单提交。。。。
呵呵,可以做很多事情哦,调查访问来源、门户计数器、欢迎页面展示。。。。
<meta http-equiv="refresh" content=“‘5’;url=http://www.marsorstudio.cn/">
其中: content = “5”,表示5秒钟以后进行跳转,写成 0 表示立即跳转。 一定注意content的写法是 “ '秒数' ; url=xxxxxxx ”
2. 使用JavaScript
这个就比较灵活了,可以有很多中写法。
抛砖引玉吧。
使用Jquery $(document).ready(function(){window.location="http://www.marsorstudio.cn";});
甚至直接写这句 window.location="http://www.marsorstudio.cn"; 都可以。注意放在<script></script>标签中哦。
这里甚至可以做Post。写一个javascript,来做个表单提交。。。。
呵呵,可以做很多事情哦,调查访问来源、门户计数器、欢迎页面展示。。。。
相关文章推荐
- 网页自动跳转 5种方法
- java servlet 几种页面跳转的方法,需要的朋友可以参考一下 在访问网页的过程中,页面自动刷新、跳转和重定向是经常用到的,这里就说说在Java中是如何实现这些功能的! 一、页面自动刷新
- 5种常见网页自动跳转方法
- 网页自动跳转 5种方法
- 实现网页之间自动跳转的方法
- 三种简单的html网页自动跳转方法,可以让你在打开一个html网页时自动跳转到其它的页面
- 网页自动跳转 5种方法【转】
- 网页自动跳转 5种方法
- 三种简单的html网页自动跳转方法
- 三种简单的html网页自动跳转方法
- 三种简单的html网页自动跳转方法
- 三种简单的html网页自动跳转方法
- 几种网页重定向(自动跳转)的方法
- 5种常见网页自动跳转方法
- 几种常见网页自动跳转方法
- HTML网页中的html body onload自动跳转方法介绍及自动跳转代码示例
- 网页自动跳转的5中方法
- 几种常见网页自动跳转方法
- asp.net(c#)网页跳转七种方法小结
- IE/Firefox每次刷新时自动检查网页更新,无需手动清空缓存的设置方法(转)