问答详情
源自: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.baidu.com','_blank','height=600,width=400,top=400,left=500');

  

 }

</script>

</head>

<body>

<input name"button" type="button" onclick="Wopen" value="点击打开新窗口" />


</body>

</html>


提问者:慕用1241161 2021-01-10 15:44

个回答

  • 啥玩意x
    2021-01-18 17:37:30

    onclick后门应该为onclick=“Wopen()”

  • 慕用1241161
    2021-01-10 15:49:26

    嗷看到了onclick后面没有括号