2022年最完整的html网页跳转代码大全

1、html网页跳转代码

  在网页头部<1head>…</head>之间插入以下代码

<meta http-equiv="refresh" content="0.1;url=https://www.erunqt.com">

其中:content="0.1 为打开该页面后多久时间开始跳转,url=后面跟上你要跳转的网址或者网页地址

2、js跳转代码

  在网页<body>…</body>之间插入以下代码

<script language='javascript'>document.location = 'https://www.erunqt.com'</script>

3、asp网页跳转代码

<%

  Response.Redirect("https://www.erunqt.com")

  Response.End

  %>

 4、php网页跳转代码  

<?php

  header("location: https://www.erunqt.com")

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐