第一步confirm就打不开啊这是为啥???
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript">
function openWindow(){
var mymessage=confirm("确认打开新网站吗?")
if(mymessage==true){
var window;
window=prompt("请输入你要打开的网站:", "http://www.imooc.com/");
if(window!=null){
window.open('http://www.imooc.com/','_blank''width:400,height:500,menubar=no,toolbar=no');
}
}
else{
alert("不打开网站了");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>