為啥新窗口打不開啊
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
function myFunction()
{
? ? alert("歡迎來到慕課網(wǎng)")
? ? window.open('http://idcbgp.cn','_blank','width=600 height=400')
}
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" onclick="myFunction()" />
</form>
</body>
</html>
2017-08-02
function里面彈窗和打開窗口都沒有+“;”
2017-08-02
width和height之間得有逗號(hào)