function open(){ var a=confirm("欢迎"); if(a==true) { window.open("www.baidu.com","_blank","width=600,height=400"); } }
window.open("www.baidu.com","_blank","width=600,height=400");Why doesn't it work? -PHP Chinese website Q&A- window.open("www.baidu.com","_blank","width=600,height=400");Why doesn't it work? -PHP Chinese website Q&A
Please watch and learn.
把"www.baidu.com"改成"http://www.baidu.com"试试,你的链接地址没有加http协议。
window.open("www.baidu.com","_blank","width=600,height=400");Why doesn't it work? -PHP Chinese website Q&A- window.open("www.baidu.com","_blank","width=600,height=400");Why doesn't it work? -PHP Chinese website Q&A
Please watch and learn.
把"www.baidu.com"改成"http://www.baidu.com"试试,你的链接地址没有加http协议。