2015.7.30 (页面自动跳转)

页面自动跳转几种方法

1.添加HTML的meta标签的refresh属性
<meta http-equiv=refresh content="0;url=http://www.hao123.com">
其中mcontent是时间,0代表立即跳转

2.javascript自动跳转法
window.location.replace("http://www.hao123.com");
window.top.location.href = "http://www.hao123.com";

3.body onload自动跳转法

<body onload="parent.location='http://www.hao123.com' " ></body>

 

posted @ 2015-07-30 16:06  AlanTao  阅读(159)  评论(0)    收藏  举报