问答详情
源自:2-5 JavaScript-打开新窗口(window.open)

点右边的按钮怎么没反应?代码如下,哪错了?

<!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=600,top=100,left=0',menubar=no,scrollbars=no,status=no)


  } 

</script>

</head>

<body>

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

</body>

</html>


提问者:慕妹7265389 2014-12-16 09:32

个回答

  • 康振宁
    2014-12-16 09:49:30

    把menubar=no,scrollbars=no,status=no这句话加引号