<title>window.open</title>
<script type="text/javascript">
function Wopen(){
window.open('http://www.imooc.com','_blank','width = 600, height = 400, top = 100px, left = 0')
}
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>
</html>
代码如上,感觉没起作用
更改为:window.open('http://www.imooc.com','_blank','width = 600, height = 400, top = 100, left = 0')
改了top=100px
window.open('http://www.imooc.com','_blank','width=600,height=400,top=100;,left=0');
window.open('http://www.imooc.com','_blank','width = 600px, height = 400px, top = 100px, left = 0px') ;