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