我这样理解有错吗?
function openWindow(){
var name
var open
name=confirm("是否打开")
open=prompt("确定打开网址"," http://www.imooc.com/")
if (name==true){
alert(open);if (open!==null){window.open(url,'_blank','width=400px','height=500px','menubar=no','toolbar=no')}
else{alert("没有输入喔")}
}
else{alert("thank you");}}