一.a标签
target="_blank" 页面在新窗口中打开
history对象
<a href="https://www.baidu.com">1111</a>
<a href="https://www.baidu.com" target="_blank">1111</a> //页面在新窗口中打开
<a href="javascript:history.go(1)">前进</a>
<a href="javascript:history.go(-1)">后退</a>
<a href="javascript:history.back()">后退</a>
<a href="javascript:history.forward()">前进</a>
二.location对象的window对象
window.location.href=“http://www.jb51.net”; //在同当前窗口中打开窗口
三.window.open
window.open(“http://www.w3schools.com”,”_blank”); //在另外新建窗口中打开窗口