<!DOCTYPE html>
<html>
<head>
<title>JS</title>
<meta charset="utf-8">
<script type="text/javascript">
function openWindow(){
var ipo=confirm("是否打开?");
if(ipo==true)
{window.open(' http://www.imooc.com/','_blank','width=400,height=500,menubar=no,toolbar=no');}
}
</script>
</head>
<body>
<input type="button" value="新窗口打开网站" onclick="openWindow()" />
</body>
</html>
http后面的冒号改成英文的
域名好像有点问题,改一下吧https://www.imooc.com,改完之后我电脑是可以正常打开的