错在哪里啊?打开是可以打开,提示框文字为什么对不上
if(open==true){window.open('代码中'_blanl'后面漏了逗号你想要可以输入网址的话需要增加输入编辑框的代码
function isOpenWindow(){
var judge=confirm("是否打开新窗口");
if( judge == true ){
var score = prompt("请输入打开新窗口的网址","http://www.imooc.com");
window.open(score,'_blank','width=400,height=500');
}else{
document.write("已取消新窗口的打开");
}
}'_blank' 后面漏了逗号