<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window对象</title>
<script type="text/javascript">
alert("欢迎来到慕课网");
function openW(){
window.open('http://www.baidu.com' '_blank' 'width=600' 'height=400');
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我,打开新窗口" onclick=openW() />
</form>
</body>
</html>
onclick=‘’你的没有引号 还有'http://www.baidu.com' '_blank' 'width=600' 'height=400');中间没有逗号分割开
function openW(){
window.open('http://www.baidu.com' '_blank' 'width=600' 'height=400');
}
open()函数中参数之间加逗号
function openW(){
window.open('http://www.baidu.com','_blank','width=600','height=400');
}