测验的问题,要打开的网站一闪而过。。。。
<!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>