最后一个打开新窗口功能实现不了,看了好多人的正确代码,可是还是找不到自己错在哪儿了?求好心人帮忙指点一下(内附网页代码截屏)
<script type="text/javascript">
function openWindow()
{
var message=confirm("确认打开新窗口吗?");
if(message==true)
{
var newurl=prompt("请输入网址","http://www.imooc.com/");
if(newurl!=null)
{
window.open(newurl,"_blank","width=400,height=500,menubar=no,toolbar=no");
}
else
{alert(拜拜);}
}
else
{alert(拜拜);}
}
</script>