始终弹不出窗口,大神帮帮忙
<!DOCTYPE html>
<html>
<head>
<title> new document </title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk"/>
<script type="text/javascript">
function a1(){
var a1=confirm("是否打开?");
if(a1==true){
var b1=prompt("打开默认","http//baidu.com");
}
else{
return
}
if(b1 !=null){
window.open(b1,"_blank","menubar=no","toolbar=no");
}
else{
return
}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>