求大神指点
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function openWindow()
{
var mymessage=confirm("是否打开对话框?");
if(mymessage==true)
{
var url=prompt("请输入网址","http://www.imooc.com");
if(url!=null)
{
window.open(url,"_blank",'height=500px,width=400px,menubar=no,toolbar=no');
}
else
}
alert("谢谢!");
}
}
else
{
alert("谢谢");
}
}
</script>
</head>
<body>
<form>
<input type="button" name="botton" onclink="openWindow()" value="点击我,打开新窗口"/>
</form>
</body>
</html>
求指点这里面哪里错了