求问这段代码哪儿有问题
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
function Wopen(){
var xxxxx= confirm("would you like to open");
if xxxxx== true
{
window.open('http://www.imooc.com','_blank','height=600,width=400,top=100,left=0');}
else
{
alert("233333")
};
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>
</html>
为啥我无论选确定还是取消 都直接弹出了?
我想要的是选 取消,就弹出23333
到底哪儿有问题啊