烦请各位大神再来看下这里哪出错了,运行不了
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function foo(){
var bli=confirm('确定打开新世界的大门吗?');
if (bli==ture)
{var url=prompt("在下面网址输入key就可以啦",'http://www.bilibili.com/');
if (url!=null)
{window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');}
else {alert('prompt关闭');}
else {alert('confirm关闭');}
}}
</script>
</head>
<body>
<input type="button" value="打开新世界的大门" onclick="foo()" />
</body>
</html>