为什么没反应,哪里写错了?
<!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 myWin = comfirm("是否打开?");
if(myWin==true){
var myWeb=prompt("请输入你的网址","http://www.imooc.com/");
window.open(myWeb,'_blank','width=400,height=500,toolbar=no,menubar=no');
}
else{
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>