页面直接跳转代码

我是淘宝客,发现有的网站,从百度搜索来的流量直接跳转到淘宝客链接,而直接输入网址的就不会自动跳转,这是怎么实现的?求代码

第1个回答  2018-04-21
<html>
<script language=javascript type="text/javascript">
window.location.replace("这里是要跳转网址,注意必须加上http://,不然不成功");
</script>
<noscript>
<meta http-equiv="refresh" content="0;URL=这里是要跳转网址,注意必须加上http://,不然不成功">
</noscript>
<head>
<title>自动跳转</title>
</head>
<body bgcolor="white" text="black">
</body>
</html>
第2个回答  推荐于2018-04-22
<head>
<meta http-equiv="refresh" content="5;url=hello.html">
</head>本回答被网友采纳
相似回答