js页面跳转

来源:互联网 发布:网络情歌2015 编辑:程序博客网 时间:2024/06/05 18:45

页面跳转有两种方式,分别是当前页面切换和跳转到新页面。在当前页面中显示新的页面使用的是location.href="",如location.href="test.html"就是将当前显示页面显示test.html页面;而打开新的页面则使用的是window.open(""),如window.open("test.heml");就是表示的是在新的页面中打开test.html页面。

0 0