请前辈帮忙看看哪里写错了,改了很多回还是没反应。
function openWindow(){
var myweb=confirm("是否打开");
if (myweb==true)
{var myweb1=prompt("确定打开的网址","http://www.imooc.com/");
if (myweb1==null)
window.open("http://www.imooc.com/","width=400px","height=500px")}
}
else
{alert("bye")};
else
{alert("bye")};
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>