1. HTML轉址方法:
(1)
<html><head> <metahttp-equiv=refresh content="【延遲秒數】;url=【目標網址】"> </head><html>
2.JavaScript轉址方式:
(1)
<script language="JavaScript"> <!-- window.location.href = "【目標網址】"; //--> </script>
(2)
<script type="text/javascript"> function run() { //5000 ===>為延遲時間設定,單位:毫秒 setTimeout('document.location = "【目標網址】"', 5000); } </script>
3.NET轉址方式:
(1)
Page.Response.Redirect("【目標網址】")
(2)
Page.Response.Write("<script> location.href= ('【目標網址】'); </script> ")
(3)
Page.Response.Write(" <script> setTimeout('location.href=""【目標網址】""',【延遲秒數】); </script> ")
全站熱搜