追求新生活 名字2008

活着的意义

如何页面自动跳转,学习到就要写下来,怕忘记了

google了一下,

只需要在源代码中的<head>后更改 meta处的 http-qeuiv 就可以了。

<meta http-equiv="Refresh" content="3;url=http://www.baidu.com"> 3秒后自动到baidu.com

 

在asp.net中,我们往往是这样

<meta http-equiv="Refresh" content="3;url=<%l=url%>"> 

至于url的输出,可以数据库得到,或者再转用javascrpt输出来,应该是很容易的。 

posted on 2011-03-10 10:15  pyman  阅读(336)  评论(0编辑  收藏  举报

导航