求助各位,怎么运行不了

   function openWindow(){
        var oPen=confirm("是否打开新窗口");
        if(oPen==true){
            var url=prompt("确定打开网址?","http://www.imooc.com/");
            if(url!=null){
                window.open(url,"_blank","width=400px,height=500px,menubar=no,toolbar=no");
            }
            else{
                alert("结束");
            }
        }
        else{
            alert("结束");
        }
    }


qq_lhr_1
浏览 1171回答 1
1回答

Will_木

window.open(url,'_blank','width=400px','height=500px','menubar=no','toolbar=no');
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript