window.open("www.baidu.com","_blank","width=600,height=400");为什么没有效果啊?
phpcn_u224
phpcn_u224 2016-12-19 09:36:32
0
2
1336
function open(){
 var a=confirm("欢迎");
 if(a==true)
 {
   window.open("www.baidu.com","_blank","width=600,height=400");
 }
    
}


phpcn_u224
phpcn_u224

reply all(2)
数据分析师

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协议。

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template