js指定调转页面代码

 分类:js知识时间:2015-11-01 15:46:38点击:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>js指定调转页面代码</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="content-type" content="js指定调转页面代码" />
<meta name="keywords" content="js指定调转页面代码" />
</head>
<body>
<script language="javascript" type="text/javascript"> 
window.location.href='http://www.7dadi.com/';
</script> 
</body>
</html>


1.js代码放在网站头部;
 
2.打开这个页面后就会调转到指定的页面。

运行代码
除注明外的文章,均为来源:老汤博客,转载请保留本文地址!
原文地址: