JS :window.location="yoururl";
或<meta http-equiv="refresh" content="1;url=http://xxx.com">
PHP :header("Location:yoururl");
或<?php
header("Location:http://www.xxx.com");
?>
ASP :response.redirect("yoururl");
或<%
response.redirect "http://"&Request.ServerVariables("SERVER_NAME")&"/news"
%>
HTML:<meta http-equiv="refresh" content="5; url=yoururl" />
把yoururl换成你的地址就ok,这几种情况虽然语句不同,但是都可以用来实现页面转向功能,但是具体的应用范围又是不一样的,而且对于header头部分处理也是不同的,具体的我也说不清楚,所以就需要以后慢慢体会了。