问答详情
源自:8-1 window对象

没有弹出网页 ,请问错误在哪啊

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
function aaa
{
 
    alert("欢迎来到慕课网");
    window.open('http://www.imooc.com','_blank','width=600 height=400');
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口"  onclick="aaa()">
</form>
</body>
</html>

提问者:慕少4732649 2017-03-16 17:15

个回答

  • 幕布斯0482650
    2017-03-16 17:16:34

    "aaa()"