window.open方法通过这种引用<script src="1.js"></script>,打不开,是不支持嘛?
function WindowOpen(){
window.open('http://www.imooc.com','_blank','width=600,height=400,menubar=no,toolbar=no, status=no,scrollbars=yes')
}
<script src="1.js"></script>
<input type="button" name="WindowOpen" value="打开新窗口" onclick="WindowOpen()" />