我的代碼為什么打不開網(wǎng)頁窗口?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>window對(duì)象</title>
<script type="text/javascript">
document.write("歡迎來到慕課網(wǎng)")
function openwin(){
? ? window.open('http://idcbgp.cn','_blank','height=600,width=400')
? ? }
</script>
</head>
<body>
<form>
<input type="button" value="點(diǎn)擊我,打開新窗口" ?onclick="openwin()"/>
</form>
</body>
</html>
2016-07-19
2016-07-19
no problem
2016-07-19
親,我測(cè)試的你的代碼沒問題。你再試試,是否是因?yàn)闉g覽器不兼容的問題或者是有些符號(hào)該用英文半角的你用成中文的?