不管怎么设置都是全屏显示

来源:2-5 JavaScript-打开新窗口(window.open)

GaryHarper

2017-02-23 18:10

<!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','_blank','width=100,height=90,top=100,left=0');


  } 

</script>

</head>

<body>

    <input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!"/>

</body>

</html>


写回答 关注

1回答

  • 慕粉Learner
    2017-02-23 18:20:02

    可以的呀,可能是兼容性问题

JavaScript入门篇

JavaScript做为一名Web工程师的必备技术,本教程让您快速入门

742038 学习 · 9869 问题

查看课程

相似问题