问答详情
源自: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 winopen{

    alert("欢迎来到慕课网");

    window.open('http://www.imoc.com','_blank','width=600,height=400,toolbar=no,menubar=no,scrollbars=no,status=no');

}

</script>

</head>

<body>

<form>

<input type="button" value="点击我,打开新窗口" onclick="winopen()" />

</form>

</body>

</html>


提问者:小璐小璐哎 2018-11-01 09:00

个回答

  • 杭城阿呆
    2018-11-01 11:26:23
    已采纳

    function winopen 后面加()