这句话是什么意思:“相同 name 的窗口只能创建一个,要想创建多个窗口则 name 不能相同。”
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>window.open</title>
<script type="text/javascript">
function Wopen(){
window.open('http://www.imooc.com','_top','width=600,height=400,top=100,left=0,menubar=no,toolbar=no, status=no,scrollbars=no');
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>
</html>