为什么我点击他不弹开啊!
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow(){
var dakai=confirm("要打开此网页吗?");
if(dakai==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("zaijian");
}
else{
alert("zaijian");
}
}
</script>
</head>
<body>
<input type="button" value="点击打开" onclick="openWindow()" />
</body>
</html>