网页跳转方法总结

1.直接嵌入js代码:
<script type="text/javascript">
location.replace("http://www.brtn.cn");
</script>


2.在<head>中,加入:
<meta http-equiv="refresh" content="0;url=http://www.baidu.com">

posted @ 2014-05-05 14:33  积累从点滴开始  阅读(205)  评论(0编辑  收藏  举报