来找茬 找错误
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function dow()
{
var new=confirm("是否打开新窗口?");
if(new==true)
{
var su=prompt("输入网址","http://www.imooc.com/");
if(su!=null)
{
window.open("http://www.imooc.com/",'width=400,height=500,menubar=no,toolar=no');
}
else
{
alert("88!");
}
}
else
{
alert("再见");
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="dow()" />
</body>
</html>