怎么采用新窗口打开

如何采用新窗口打开exit(script alert(提交成功!)location.hrefhttp://www.baidu.com/script

如何采用新窗口打开
exit("<script> alert('提交成功!');location.href='http://www.baidu.com';</script>");

如何在提交成功后在新窗口打开百度?本人小白一枚,请多指教!
[解决办法]
window.open('http://www.baidu.com')