点击 新窗口打开网站 打不开网站,,
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>自制网页打开</title>
</head>
<body>
<script type="text/javascript">
var a
function openwindow(){
a=window.open('http://www.imooc.com','_blank','widtn=600,height=400,top=100px,left=0px');
}
function guanbi(){
a.close();
}
</script>
<input type="button" value="新窗口打开网站" onclick="openwindow()"/>
<input type="button" value="关闭新窗口打开网站" onclick="guanbi()"/>
</body>
</html>