HTML

<meta http-equiv="refresh" content="0;url=http://www.google.com.tw" />


Javascript

<script>document.location.href="http://www.google.com.tw";</script>


PHP

<?php
    header
('Location: http://www.google.com.tw');
    exit;
?>


HTML:只能透過 <meta> refresh 的 0 秒自動重新整理來達到自動轉址的目的
Javascript 和 PHP:使用 location 接 url 的形式,乃自動轉址的本來形式

文章標籤
全站熱搜
創作者介紹
創作者 呆丸北拜 的頭像
呆丸北拜

<a href="http://twpcsx2.blogspot.com/2014/02/blogger.html">呆丸北拜已搬家至 Blogger</a>

呆丸北拜 發表在 痞客邦 留言(0) 人氣(12,671)