为了账号安全,请及时绑定邮箱和手机立即绑定

能帮我看看哪里出问题了吗?

<!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>


正在回答

1 回答

function winopen 后面加()

0 回复 有任何疑惑可以回复我~
#1

小璐小璐哎 提问者

尴尬...谢谢你哟!
2018-11-01 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

能帮我看看哪里出问题了吗?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信